Export (0) Print
Expand All

StgConvertPropertyToVariant function

The StgConvertPropertyToVariant function converts a SERIALIZEDPROPERTYVALUE data type to a PROPVARIANT data type.

Syntax


BOOLEAN StgConvertPropertyToVariant(
  _In_   const SERIALIZEDPROPERTYVALUE *prop,
  _In_   USHORT CodePage,
  _Out_  PROPVARIANT *pvar,
  _In_   PMemoryAllocator *pma
);

Parameters

prop [in]

A pointer to SERIALIZEDPROPERTYVALUE.

CodePage [in]

A property set codepage.

pvar [out]

A pointer to PROPVARIANT.

pma [in]

A pointer to a class that implements the IMemoryAllocator abstract class.

Return value

Returns TRUE is the property converted was an indirect type (VT_STREAM or VT_STREAMED_OBJECT); otherwise FALSE.

Remarks

This function converts a property to a PROPVARIANT data type. If the function fails, it throws an exception that represents an NT_STATUS such as STATUS_INVALID_PARAMETER.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Propidl.h

Library

Ole32.lib

DLL

Ole32.dll

See also

StgConvertVariantToProperty
StgDeserializePropVariant

 

 

Community Additions

ADD
Show:
© 2014 Microsoft