CeGetSpecialFolderPath (RAPI) (Compact 7)
This function retrieves the path to a special shell folder on a remote Windows Embedded Compact-based device.
DWORD CeGetSpecialFolderPath( Int nFolder, DWORD nBufferLength, LPWSTR lpBuffer );
[in] Value specifying the special shell folder you want. This value can be one of the following symbols defined in the ShlObj.h header file.
File system directory that serves as a common repository for application-specific data.
Virtual folder that contains the desktop items. This is the folder at the root of the virtual namespace.
File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself).
File system directory that serves as a common repository for the user's favorite items.
Virtual folder containing fonts.
File system directory that serves as a common repository for documents.
Folder that contains the profile of the user.
Program files folder.
File system directory that contains the user's program groups (which are also file system directories).
File system directory that contains the user's most recently used documents.
File system directory that contains Start menu items.
File system directory that corresponds to the user's Startup program group. The system starts these programs when a device is powered on.
[in] Size of lpBuffer in characters.
[out] Long pointer to the buffer for the folder path.
The length of the returned string indicates success. FALSE indicates a RAPI-related failure. To get extended error information, call CeGetLastError and CeRapiGetError.
Do not assume that SHGetSpecialFolderPath sets the last error on failure.