 |
SHGetPathFromIDList ..msdn Add comment W32 Constants Translate this page |
 |
 |
Converts an item identifier list to a file system path.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL SHGetPathFromIDList(
LPCITEMIDLIST pidl,
LPTSTR pszPath
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SHGetPathFromIDList IN shell32;
INTEGER pidl,;
STRING @ pszPath
|
 |
 |
 |
| Parameters: |
 |
pidl
Address of an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop).
pszPath
Address of a buffer to receive the file system path. This buffer must be at least MAX_PATH characters in size. |
 |
 |
| Return value: |
 |
| Returns TRUE if successful, or FALSE otherwise. |
 |
 |
| Usage: |
 |
PROCEDURE PIDLFromPath( cPath As String ) As Number
RETURN SHSimpleIDListFromPath(;
THIS.ToUnicode(m.cPath))
PROCEDURE PathFromPIDL( nPIDL As Number ) As String
LOCAL cBuffer
cBuffer = REPLICATE(CHR(0), MAX_PATH)
SHGetPathFromIDList( nPIDL, @cBuffer )
RETURN STRTRAN(m.cBuffer, CHR(0), "")
PROCEDURE ToUnicode( cSource As String ) As String
RETURN STRCONV(m.cSource+CHR(0),5)
|
 |
 |
| My comment: |
 |
| See also: SHSimpleIDListFromPath, SHParseDisplayName |
 |
 |
| Word Index links for the SHGetPathFromIDList : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-01-02 15:57:37 | | Modified: | 2011-01-15 14:21:45 | Visited in last 7 days: 24 |