未分类--Windows API--AssocCreateForClasses

来源:互联网 发布:php 电话正则 编辑:程序博客网 时间:2024/05/02 04:31

原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com

 

AssocCreateForClasses Function

--------------------------------------------------------------------------------

Retrieves an object that implements an IQueryAssociations interface.
检索一个对象实现了IQueryAssociations接口。
Syntax

HRESULT AssocCreateForClasses(         
const ASSOCIATIONELEMENT *rgClasses,
ULONG cClasses,
REFIID riid,
void **ppv
);
Parameters

rgClasses
[in] A pointer to an array of ASSOCIATIONELEMENT structures.
一个指针指向ASSOCIATIONELEMENT结构体数组。
cClasses
[in] The number of elements in the array pointed to by rgClasses.
由rgClasses指向的数组中元素的个数。
riid
[in] The reference identifier of the interface being created.
被创建的接口的引用标识符。
ppv
[out] When this method returns, contains the address of a pointer to the object created.
当这个方法返回时,包含一个指向创建对象的地址。
Return Value

Returns S_OK if successful, or an error value otherwise.
如果成功返回S_OK,否则返回一个错误。
Function Information

Minimum DLL Version Shell32.dll
Custom Implementation No
Header shellapi.h
Import library None
Minimum operating systems Windows Vista


--------------------------------------------------------------------------------

 

0 0
原创粉丝点击