网站首页  词典首页

请输入您要查询的函数:

 

术语 shgetpathfromidlist
释义 SHGetPathFromIDList
语法:
BOOL SHGetPathFromIDList( PCIDLIST_ABSOLUTE pidl,
LPTSTR pszPath
);
SHGetPathFromIDList函数
转换的项目标识符列表到一个文件系统路径。
参数
的PIDL
[in]一个项目标识符列表,指定一个文件或目录的位置相对于命名空间(桌面)的根地址。
pszPath
[指出]缓冲的地址,以接收的文件系统路径。这个缓冲区必须至少MAX_PATH字符的大小。
返回值
如果成功返回TRUE,否则返回FALSE。
备注
如果得到的PIDL参数指定的位置不属于文件系统的一部分,此函数将失败。
如果的PIDL参数指定一个快捷方式,pszPath将包含路径的快捷方式,而不是快捷方式的目标。
在Windows 95/98/Me:SHGetPathFromIDList是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98系统。
功能信息
最低DLL版本 shell32.dll 4.0或更高版本
自定义ImplementationNo
Headershlobj.h
import libraryshell32.lib
最低经营systemsWindows NT 4.0中,Windows 95中
UnicodeImplemented为ANSI和Unicode版本。
参见
SHParseDisplayName,SHGetPathFromIDListEx
==英文原文==SHGetPathFromIDList Function
Converts an item identifier list to a file system path.
Syntax
BOOL SHGetPathFromIDList( PCIDLIST_ABSOLUTE pidl,
LPTSTR pszPath
);
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
[out] The address of a buffer to receive the file system path. This buffer must be at least MAX_PATH characters in size.
Return Value
Returns TRUE if successful; otherwise, FALSE.
Remarks
If the location specified by the pidl parameter is not part of the file system, this function will fail.
If the pidl parameter specifies a shortcut, the pszPath will contain the path to the shortcut, not to the shortcut's target.
Windows 95/98/Me: SHGetPathFromIDList is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows Me/98/95 Systems .
Function Information
Minimum DLL Versionshell32.dll version 4.0 or later
Custom ImplementationNo
Headershlobj.h
Import libraryshell32.lib
Minimum operating systemsWindows NT 4.0, Windows 95
UnicodeImplemented as ANSI and Unicode versions.
See Also
SHParseDisplayName , SHGetPathFromIDListEx
==原始网址==http://msdn.microsoft.com/en-us/library/bb762194(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:26:14