EN
此内容没有您的语言版本,但有英语版本。

PSGetImageReferenceForValue function

Gets an instance of a property description interface for a specified property.

Syntax


HRESULT PSGetImageReferenceForValue(
  _In_   REFPROPERTYKEY propkey,
  _In_   REFIID riid,
  _Out_  void **ppv
);

Parameters

propkey [in]

Type: REFPROPERTYKEY

A reference to a PROPERTYKEY structure that specifies the property.

riid [in]

Type: REFIID

A reference to the IID of the interface to retrieve through ppv.

ppv [out]

Type: void**

When this function returns successfully, contains the interface pointer requested in riid.

Return value

Type: HRESULT

Returns S_OK if successful, or an error value otherwise, including the following:

Return codeDescription
TYPE_E_ELEMENTNOTFOUND

 

Remarks

We recommend that you use the IID_PPV_ARGS macro, defined in Objbase.h, to package the riid and ppv parameters. This macro provides the correct IID based on the interface pointed to by the value in ppv, which eliminates the possibility of a coding error in riid that could lead to unexpected results.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Propsys.idl

Library

Propsys.lib

DLL

Propsys.dll (version 6.0 or later)

 

 

社区附加资源

添加
显示:
© 2014 Microsoft