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
    Pointer to a string 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.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Ocidl.h

IDL

Ocidl.idl

See also

PROPBAG2_TYPE