Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function retrieves the path to the documents directory for the volume specified in the pszVolumeparameter.
Syntax
BOOL SHGetDocumentsFolder( LPCTSTR pszVolume, LPTSTR pszDocs ); |
Parameters
- pszVolume
-
[in] Pointer to a string that contains the storage volume from which the path to the documents directory should be retrieved.
- pszDocs
-
[out] Pointer to a string that contains the documents directory path. This string must be allocated for a path at least as long as the value of MAX_PATH.
Return Value
Returns TRUE if the documents directory path was successfully copied to pszDocs.
Returns FALSE if a documents directory path does not exist for the specified volume. For example, this function will return FALSE if a storage volume is initially specified but there is no storage card currently inserted.
Requirements
Header | commctrl.h, shlobj.h |
Library | ceshell.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Pocket PC 2002 and later, Smartphone 2002 and later |