SHGetSpecialFolderLocation
函数
SHGetSpecialFolderLocation是一个计算机函数,函数原型为,功能为File system directory。
函数特点
WINSHELLAPI HRESULT WINAPI SHGetSpecialFolderLocation( HWND hwndOwner, int nFolder, LPITEMIDLIST *ppidl); Retrieves the PIDL of a special folder. Returns NOERROR if successful, or an OLE-defined error result otherwise.hwndOwnerHandle to the owner window the client should specify if it displays a dialog box or message box.nFolderValue specifying the folder for which to retrieve the location. This parameter can be one of the following values:
应用示例
ppidlAddress of a pointer to an item identifier list specifying the folder's location relative to the root of the namespace (the desktop). The calling application is responsible for freeing this pointer with the shell'sIMallocinterface (seeSHGetMalloc). See alsoSHGetSpecialFolderPath
中文翻译
WINSHELLAPI HRESULT WINAPI SHGetSpecialFolderLocation (HWND hwndOwner, int nFolder,LPITEMIDLIST * ppidl); //函数声明
nFolder: 是一个整数id,决定哪个目录是待查找目录,它的取值可能是
CSIDL_BITBUCKET回收站
CSIDL_CONTROLS控制面板
CSIDL_DESKTOP Windows桌面desktop;
CSIDL_DESKTOPDIRECTORY desktop的目录;
CSIDL_DRIVES我的电脑
CSIDL_FONTS 字体目录
CSIDL_NETHOOD网上邻居
CSIDL_NETWORK 网上邻居virtual folder
CSIDL_PERSONAL我的文档
CSIDL_PRINTERS 打印机
CSIDL_PROGRAMS 程序组
CSIDL_RECENT 最近打开文档
CSIDL_SENDTO 发送到菜单项
CSIDL_STARTMENU 快启菜单(开始菜单)
CSIDL_STARTUP 启动目录
CSIDL_TEMPLATES 临时文档
ppidl: pidl地址. SHGetSpecialFolderLocation把地址写到pidl.
Requirements
参考资料
最新修订时间:2024-01-10 22:22
目录
概述
函数特点
参考资料