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:
- 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 |
|
|
Library |
|
|
DLL |
|
See also