Click to return to the Component Development home page    
Component Structures Refe...     Component Enumerated Type...     Component Structures Refe...    
Web Workshop  |  Component Development

PROPBAG2 Structure


Contains or receives property information.

Syntax

typedef struct _tagPROPBAG2{
    DWORD dwType; 
    VARTYPE vt; 
    CLIPFORMAT cfType; 
    DWORD dwHint; 
    LPOLESTR pstrName; 
    CLSID clsid; 
} PROPBAG2;

Members

dwType
Type of property. This will be one of the PROPBAG2_TYPE values.
vt
VARIANT type of the property.
cfType
Clipboard format or MIME type of the property.
dwHint
Property name integer. If possible, this member will be filled by IPropertyBag2::GetPropertyInfo and can be used with IPropertyBag2::Read and IPropertyBag2::Write to accelerate the read or write operation. These values are not valid outside the property bag that created them.
pstrName
Address of an OLESTR that specifies the property name.
clsid
CLSID of the object. This member is valid only if dwType is PROPBAG2_TYPE_OBJECT.

Remarks

The PROPBAG2 structure is used with the IPropertyBag2::GetPropertyInfo, IPropertyBag2::Read, and IPropertyBag2::Write methods.

Structure Information

Windows NT Use version 4.0
Windows Use Windows 95 and later
Header Ocidl.h; Ocidl.idl
Minimum availability Windows 95, Windows NT 4.0

See Also

PROPBAG2_TYPE



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.