EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

PSCreatePropertyStoreFromObject function

Accepts the IUnknown interface of an object that supports IPropertyStore or IPropertySetStorage. If the object supports IPropertySetStorage, it is wrapped so that it supports IPropertyStore.

Syntax


HRESULT PSCreatePropertyStoreFromObject(
  _In_   IUnknown *punk,
  _In_   DWORD grfMode,
  _In_   REFIID riid,
  _Out_  void **ppv
);

Parameters

punk [in]

Type: IUnknown*

A pointer to an interface that supports either IPropertyStore or IPropertySetStorage.

grfMode [in]

Type: DWORD

Specifies the access mode to use. One of these values:

STGM_READ

Open for reading.

STGM_READWRITE

Open for reading and writing.

riid [in]

Type: REFIID

Reference to the requested IID.

ppv [out]

Type: void**

When this function returns successfully, contains the address of a pointer to an interface guaranteed to support IPropertyStore.

Return value

Type: HRESULT

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

Remarks

If the object pointed to by punk already supports IPropertyStore, no wrapper is created and the punk is returned unaltered.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

Header

Propsys.h

Library

Propsys.lib

DLL

Propsys.dll (version 6.0 or later)

See also

PSCreatePropertyStoreFromPropertySetStorage

 

 

Добавления сообщества

ДОБАВИТЬ
Показ:
© 2014 Microsoft