 |
SHSimpleIDListFromPath ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Returns a pointer to an ITEMIDLIST structure when passed a path. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
PIDLIST_ABSOLUTE SHSimpleIDListFromPath(
__in PCWSTR pszPath
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SHSimpleIDListFromPath IN shell32;
STRING pszPath
|
 |
 |
 |
| Parameters: |
 |
pszPath [in]
A pointer to a null-terminated string that contains the path to be converted to a PIDL. |
 |
 |
| Return value: |
 |
| Returns a pointer to an ITEMIDLIST structure if successful, or NULL 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: SHGetPathFromIDList, SHParseDisplayName |
 |
 |
| Word Index links for the SHSimpleIDListFromPath : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2011-01-15 14:03:04 | | Modified: | 2011-01-15 14:21:29 | Visited in last 7 days: 9 |