PSCreateSimplePropertyChange function (propsys.h)

Creates a simple property change.

Syntax

PSSTDAPI PSCreateSimplePropertyChange(
  [in]  PKA_FLAGS      flags,
  [in]  REFPROPERTYKEY key,
  [in]  REFPROPVARIANT propvar,
  [in]  REFIID         riid,
  [out] void           **ppv
);

Parameters

[in] flags

Type: PKA_FLAGS

PKA_FLAGS flags.

[in] key

Type: REFPROPERTYKEY

Reference to a PROPERTYKEY structure.

[in] propvar

Type: REFPROPVARIANT

Reference to a PROPVARIANT structure.

[in] riid

Type: REFIID

Reference to a specified IID.

[out] ppv

Type: void**

The address of an IPropertyChange interface pointer.

Return value

Type: HRESULT

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

Remarks

Property changes can be placed into an IPropertyChangeArray which can then be used with IFileOperation to modify the properties on an item.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header propsys.h
Library Propsys.lib
DLL Propsys.dll (version 6.0 or later)
Redistributable Windows Desktop Search (WDS) 3.0