Windows Dev Center

Collapse the table of content
Expand the table of content
Espandi Riduci a icona
EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

PSPropertyBag_WriteUnknown function

Writes a property of an unknown data value in a property bag.

Syntax


HRESULT PSPropertyBag_WriteUnknown(
  _In_ IPropertyBag *propBag,
  _In_ LPCWSTR      propName,
  _In_ IUnknown     *punk
);

Parameters

propBag [in]

Type: IPropertyBag*

A pointer to an IPropertyBag object that represents the property bag in which the property is stored.

propName [in]

Type: LPCWSTR

A pointer to a null-terminated property name string.

punk [in]

Type: IUnknown*

A pointer to an IUnknown derived interface that copies the specified property of an unknown data value in a property bag.

Return value

Type: HRESULT

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

Remarks

The property bag property function API converts between window types and the VARIANT type that is used to express values in a property bag. Doing so eases property bag usage, simplifies applications, and avoids common coding errors.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Propsys.h

Library

Propsys.lib

DLL

Propsys.dll (version 6.0 or later)

See also

PSPropertyBag_ReadUnknown

 

 

Aggiunte alla community

AGGIUNGI
Mostra:
© 2015 Microsoft