术语 | shgetpathfromidlistex |
释义 | SHGetPathFromIDListEx 语法: BOOL SHGetPathFromIDListEx( PCIDLIST_ABSOLUTE pidl, PWSTR pszPath, DWORD cchPath, GPFIDL_FLAGS uOpts ); SHGetPathFromIDListEx功能 转换的项目标识符列表到一个文件系统路径。此功能扩展SHGetPathFromIDList通过允许您设置字符串缓冲区的初始大小,并宣布以下的选项。 参数 的PIDL [in]一个项目标识符列表,指定一个文件或目录的位置相对于命名空间(桌面)的根地址。 pszPath [中,指出当此函数被调用它是通过一空终止],Unicode的缓冲区接收文件系统路径。此缓冲区大小cchPath。 当此函数返回时,包含一个空地址,终止,Unicode的缓冲区,它包含文件系统路径。此缓冲区大小cchPath。 cchPath [in]的缓冲区的大小指向pszPath,以字符。 uOpts [in]这些标志确定类型的路径返回。 GPFIDL_DEFAULT 微软Win32文件名,服务器,和根驱动器中。 GPFIDL_ALTNAME 使用短文件名。 GPFIDL_UNCPRINTER 包括通用命名约定(UNC)打印机名称的项目。 返回值 如果成功返回TRUE,否则返回FALSE。 备注 除联合国军司令部的打印机名称,如经的PIDL参数指定的位置不属于文件系统的一部分,此函数失败。 如果的PIDL参数指定一个快捷方式,pszPath包含路径的快捷方式,而不是快捷方式的目标。 功能信息 最低DLL版本 shell32.dll 自定义ImplementationNo Headershlobj.h import libraryshell32.lib 最低支持操作系统 Vista 参见 SHParseDisplayName ==英文原文==SHGetPathFromIDListEx Function Converts an item identifier list to a file system path. This function extends SHGetPathFromIDList by allowing you to set the initial size of the string buffer and declare the options below. Syntax BOOL SHGetPathFromIDListEx( PCIDLIST_ABSOLUTE pidl, PWSTR pszPath, DWORD cchPath, GPFIDL_FLAGS uOpts ); Parameters pidl [in] The address of an item identifier list that specifies a file or directory location relative to the root of the namespace (the desktop). pszPath [in, out] When this function is called it is passed a null-terminated, Unicode buffer to receive the file system path. This buffer is of size cchPath. When this function returns, contains the address of a null-terminated, Unicode buffer that contains the file system path. This buffer is of size cchPath. cchPath [in] The size of the buffer pointed to by pszPath, in characters. uOpts [in] These flags determine the type of path returned. GPFIDL_DEFAULT Microsoft Win32 file names, servers, and root drives are included. GPFIDL_ALTNAME Uses short file names. GPFIDL_UNCPRINTER Include Universal Naming Convention (UNC) printer names items. Return Value Returns TRUE if successful; otherwise, FALSE. Remarks Except for UNC printer names, if the location specified by the pidl parameter is not part of the file system, this function fails. If the pidl parameter specifies a shortcut, the pszPath contains the path to the shortcut, not to the shortcut's target. Function Information Minimum DLL Versionshell32.dll Custom ImplementationNo Headershlobj.h Import libraryshell32.lib Minimum operating systemsWindows Vista See Also SHParseDisplayName ==原始网址==http://msdn.microsoft.com/en-us/library/bb762195(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。