 |
SHGetFolderLocation Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves the path of a folder as an ITEMIDLIST structure. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HRESULT SHGetFolderLocation(
__in HWND hwndOwner,
__in int nFolder,
__in HANDLE hToken,
__reserved DWORD dwReserved,
__out PIDLIST_ABSOLUTE *ppidl
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER SHGetFolderLocation IN shell32;
INTEGER hwndOwner,;
INTEGER nFolder,
INTEGER hToken,
INTEGER dwReserved,
INTEGER @ppidl
|
 |
 |
 |
| Parameters: |
 |
hwndOwner [in]
Reserved.
nFolder [in]
A CSIDL value that identifies the folder to be located. The folders associated with the CSIDLs might not exist on a particular system.
hToken [in]
An access token that can be used to represent a particular user. It is usually set to NULL
dwReserved [in]
Reserved.
ppidl [out]
The address of a pointer to an item identifier list structure that specifies the folder"s location relative to the root of the namespace (the desktop). |
 |
 |
| Return value: |
 |
| Returns S_OK (0) if successful, or an error value otherwise. |
 |
 |
| My comment: |
 |
| See also: SHGetFolderPath, SHSimpleIDListFromPath, SHGetPathFromIDList |
 |
 |
| Word Index links for the SHGetFolderLocation : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2011-01-15 14:15:59 | | Modified: | 2011-01-15 14:18:31 | Visited in last 7 days: 7 |