Shell_GetSpecialFolder returns the path for a given ID. For example CSIDL_DESKTOPDIRECTORY returns the desktop directory for the current user.
Return Value
ssSpecialFolder is the directory for the short cut.
Parameters
nFolder is one of the following IDs. More in the Windows SDK.
| CSIDL_DESKTOP | 0x0000 | // <desktop> |
| CSIDL_PROGRAMS | 0x0002 | // Start Menu\Programs |
| CSIDL_PERSONAL | 0x0005 | // My Documents |
| CSIDL_FAVORITES | 0x0006 | // <user name>\Favorites |
| CSIDL_STARTUP | 0x0007 | // Start Menu\Programs\Startup |
| CSIDL_RECENT | 0x0008 | // <user name>\Recent |
| CSIDL_SENDTO | 0x0009 | // <user name>\SendTo |
| CSIDL_STARTMENU | 0x000b | // <user name>\Start Menu |
| CSIDL_DESKTOPDIRECTORY | 0x0010 | // <user name>\Desktop |
| CSIDL_COMMON_STARTMENU | 0x0016 | // All Users\Start Menu |
| CSIDL_COMMON_PROGRAMS | 0X0017 | // All Users\Start Menu\Programs |
| CSIDL_COMMON_STARTUP | 0x0018 | // All Users\Startup |
| CSIDL_COMMON_DESKTOPDIRECTORY | 0x0019 | // All Users\Desktop |
Example
See Shell_CreateShortcut.
History
| Version | Description |
|---|---|
| 5.3.0 | New. |
See also
id-1820796