[SHGetSpecialFolderPath is not supported. Instead, use ShGetFolderPath.]
Retrieves the path of a special folder, identified by its CSIDL.
BOOL SHGetSpecialFolderPathA( HWND hwnd, LPSTR pszPath, int csidl, BOOL fCreate );
A pointer to a null-terminated string that receives the drive and path of the specified folder. This buffer must be at least MAX_PATH characters in size.
A CSIDL that identifies the folder of interest. If a virtual folder is specified, this function will fail.
Indicates whether the folder should be created if it does not already exist. If this value is nonzero, the folder is created. If this value is zero, the folder is not created.
TRUE if successful; otherwise, FALSE.
The Microsoft Internet Explorer 4.0 Desktop Update must be installed for this function to be available.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||shlobj_core.h (include Shlobj.h, Shlobj_core.h)|
|DLL||Shell32.dll (version 4.71 or later)|