Retrieves the location of a special folder.
Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
|Operating Systems Supported|
|Requires Windows NT 4.0 or later; Requires Windows 95 or later|
Handle of the owner window that the client should specify if it displays a dialog box or message box.
Value specifying the folder to retrieve the location of. This parameter can be one of the following values:
Recycle bin ĺ file system directory containing file objects in the userís recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it.
File system directory that contains files and folders that appear on the desktop for all users.
File system directory that contains the directories for the common program groups that appear on the Start menu for all users.
File system directory that contains the programs and folders that appear on the Start menu for all users.
File system directory that contains the programs that appear in the Startup folder for all users. The system starts these programs whenever any user logs on to Windows NT or starts up Windows 95.
Control Panel ĺ virtual folder containing icons for the control panel applications.
Windows desktop ĺ virtual folder at the root of the name space.
File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself).
My Computer ĺ virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives.
Virtual folder containing fonts.
File system directory containing objects that appear in the network neighborhood.
Network Neighborhood ĺ virtual folder representing the top level of the network hierarchy.
File system directory that serves as a common respository for documents.
Printers folder ĺ virtual folder containing installed printers.
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 Send To menu items.
File system directory containing Start menu items.
File system directory that corresponds to the userís Startup program group.
File system directory that serves as a common repository for document templates.
Address that receives a pointer to an item identifier list specifying the folderís location relative to the root of the name space (the desktop).
|Returns NOERROR if successful or an OLE-defined error result otherwise. |