术语 | shbindtoobject |
释义 | SHBindToObject 语法: HRESULT SHBindToObject( IShellFolder *psf, PCUIDLIST_RELATIVE pidl, IBindCtx *pbc, REFIID riid, void **ppv ); SHBindToObject功能 检索并绑定一个指定的对象,通过使用Shell命名空间IShellFolder::BindToObject的方法。 参数 聚砜 一个IShellFolder指针。此参数可以为NULL。如果每平方英尺为NULL,这表明参数的PIDL是相对于桌面。在这种情况下的PIDL必须指定一个绝对的ITEMIDLIST。 的PIDL 阿为一个恒定的ITEMIDLIST绑定指针是相对于涤纶短纤。如果每平方英尺为NULL,这是一个绝对的ITEMIDLIST相对于桌面文件夹。 中国人民银行 [in]一个指针IBindCtx接口绑定上下文对象将在此操作使用。如果此参数不使用,将它设置为NULL。因为人民银行的支持是可选的文件夹对象的实现,某些文件夹可能不支持的情况下使用的约束。 riid 接口的标识符返回。 PPV的 [内]当此方法返回,包含在riid的绑定对象指定的接口指针。如果发生错误,包含一个NULL指针。 返回值 返回S_OK如果成功,或其他错误值。 备注 注意这是一个辅助函数,通过调用SHGetDesktopFolder的桌面对象。 功能信息 最低DLL版本 Shell32.dll 自定义ImplementationNo Headershlobj.h import libraryNone 最低支持操作系统 Vista 参见 IShellFolder,IShellFolder::BindToObject的 ==英文原文==SHBindToObject Function Retrieves and binds to a specified object by using the Shell namespace IShellFolder::BindToObject method. Syntax HRESULT SHBindToObject( IShellFolder *psf, PCUIDLIST_RELATIVE pidl, IBindCtx *pbc, REFIID riid, void **ppv ); Parameters psf A pointer to IShellFolder . This parameter can be NULL. If psf is NULL, this indicates parameter pidl is relative to the desktop. In this case, pidl must specify an absolute ITEMIDLIST . pidl A pointer to a constant ITEMIDLIST to bind to that is relative to psf. If psf is NULL, this is an absolute ITEMIDLIST relative to the desktop folder. pbc [in] A pointer to IBindCtx interface on a bind context object to be used during this operation. If this parameter is not used, set it to NULL. Because support for pbc is optional for folder object implementations, some folders may not support the use of bind contexts. riid Identifier of the interface to return. ppv [out] When this method returns, contains the interface pointer as specified in riid to the bound object. If an error occurs, contains a NULL pointer. Return Value Returns S_OK if successful, or an error value otherwise. Remarks Note This is a helper function that gets the desktop object by calling SHGetDesktopFolder . Function Information Minimum DLL VersionShell32.dll Custom ImplementationNo Headershlobj.h Import libraryNone Minimum operating systemsWindows Vista See Also IShellFolder , IShellFolder::BindToObject ==原始网址==http://msdn.microsoft.com/en-us/library/bb762113(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。