SHGetSpecialFolderPath
This function retrieves the path of a special folder, identified by its CSIDL.
BOOL SHGetSpecialFolderPath(
HWND hwndOwner,
LPTSTR lpszPath,
int nFolder,
BOOL fCreate );
Parameters
- hwndOwner
Handle to the owner window the client should specify if it displays a dialog box or message box. - lpszPath
Address of a character buffer that receives the drive and path of the specified folder. This buffer must be at least MAX_PATH characters in size. - nFolder
A CSIDL that identifies the folder of interest. If a virtual folder is specified, this function will fail. - fCreate
Indicates if the folder should be created if it does not already exist. If this value is nonzero, the folder will be created. If this value is zero, the folder will not be created.
Return Values
Returns FALSE even if successful.
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 2.12 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.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.