从Msdn里找,一般是c的了,用vb有点吃亏 你根据参数改一下声明就行了SHGetPathFromIDList This function converts an item identifier list to a file system path. WINSHELLAPI BOOL WINAPI SHGetPathFromIDList( LPCITEMIDLIST pidl, LPSTR pszPath ); Parameters pidl [in] Pointer to an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop). pszPath [out] Pointer to a buffer to receive the file system path. This buffer must be at least MAX_PATH characters in size. Return Values TRUE indicates success. FALSE indicates failure.Res If the location specified by the pidl parameter is not part of the file system, this function will fail. RequirementsRuns on Versions Defined in Include Link to Windows CE OS 2.0 and later Shellapi.h Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
你根据参数改一下声明就行了SHGetPathFromIDList
This function converts an item identifier list to a file system path. WINSHELLAPI BOOL WINAPI SHGetPathFromIDList(
LPCITEMIDLIST pidl,
LPSTR pszPath );
Parameters
pidl
[in] Pointer to an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop).
pszPath
[out] Pointer to a buffer to receive the file system path. This buffer must be at least MAX_PATH characters in size.
Return Values
TRUE indicates success. FALSE indicates failure.Res
If the location specified by the pidl parameter is not part of the file system, this function will fail. RequirementsRuns on Versions Defined in Include Link to
Windows CE OS 2.0 and later Shellapi.h Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
http://www.mentalis.org/agnet/appdown.shtml
确实比Api viewer好的多