Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StgPropertyLengthAsVariant function

The StgPropertyLengthAsVariant function examines a SERIALIZEDPROPERTYVALUE and returns the amount of memory that this property would occupy as a PROPVARIANT.

Syntax


ULONG StgPropertyLengthAsVariant(
  _In_       const  SERIALIZEDPROPERTYVALUE *pProp,
  _In_              ULONG                   cbProp,
  _In_              USHORT                  CodePage,
  _Reserved_        BYTE                    bReserved
);

Parameters

pProp [in]

A pointer to a SERIALIZEDPROPERTYVALUE.

cbProp [in]

The size of the pProp buffer in bytes.

CodePage [in]

A property set code page.

bReserved [in]

Reserved. Must be 0.

Return value

Returns the amount of memory the property would occupy as a PROPVARIANT.

Remarks

Use this function to decide whether or not to deserialize a property value in a low-memory scenario. Most applications will have no need to call this function.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Propapi.h

Library

Ole32.lib

DLL

Ole32.dll

See also

StgConvertPropertyToVariant
StgDeserializePropVariant

 

 

Community Additions

Show:
© 2016 Microsoft