Contents Index Topic Contents | ||
Previous Topic: SHGetSpecialFolderLocation Next Topic: SHInvokePrinterCommand |
SHGetSpecialFolderPath
WINSHELLAPI HRESULT WINAPI SHGetSpecialFolderPath( HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate );Retrieves the path of a special folder.
- Returns NOERROR if successful, or an OLE-defined error result otherwise.
- 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
- Value specifying the folder for which to retrieve the location. This can be one of the nFolder values described in SHGetSpecialFolderLocation. This argument must specify a real folder and not a virtual folder. 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.
Version 4.71
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.