IPropertyStoreCache::SetState Method

Sets the property state of a specified property key.

Syntax

HRESULT SetState(
  [in]  REFPROPERTYKEY key,
  [in]  PSC_STATE state
);

Parameters

  • key [in]
    REFPROPERTYKEY A reference to PROPERTYKEY structure.
  • state [in]
    PSC_STATE A value from the PSC_STATE enumeration declaring the state of the property.

Return Value

HRESULT

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

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Propsys.h

IDL

Propsys.idl

See Also

IPropertyStoreCache

 

 

Send comments about this topic to Microsoft

Build date: 4/28/2010