Export (0) Print
Expand All

IShellItem2::GetPropertyStoreForKeys method

Gets property store object for specified property keys.

Syntax


HRESULT GetPropertyStoreForKeys(
  [in]   const PROPERTYKEY *rgKeys,
  [in]   UINT cKeys,
  [in]   GETPROPERTYSTOREFLAGS flags,
  [in]   REFIID riid,
  [out]  void **ppv
);

Parameters

rgKeys [in]

Type: const PROPERTYKEY*

A pointer to an array of PROPERTYKEY structures. Each structure contains a unique identifier for each property used in creating the property store.

cKeys [in]

Type: UINT

The number of PROPERTYKEY structures in the array pointed to by rgKeys.

flags [in]

Type: GETPROPERTYSTOREFLAGS

The GETPROPERTYSTOREFLAGS constants that modify the property store object.

riid [in]

Type: REFIID

A reference to the IID of the object to be retrieved.

ppv [out]

Type: void**

When this method returns, contains the address of an IPropertyStore interface pointer.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Note   When this method is called on a property store for a file, that file is held open for the lifetime of the IPropertyStore object.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft