The PROPSPEC structure is used by many of the methods of IPropertyStorage to specify a property either by its property identifier or the associated string name. The structure and related definitions are defined as follows in the header files:
const ULONG PRSPEC_LPWSTR = 0
const ULONG PRSPEC_PROPID = 1
typedef ULONG PROPID
typedef struct tagPROPSPEC
{
ULONG ulKind; // PRSPEC_LPWSTR or PRSPEC_PROPID
union
{
PROPID propid;
LPOLESTR lpwstr;
}
} PROPSPEC
String names are optional and can be assigned to a set of properties when the property is created with a call to IPropertyStorage::WriteMultiple, or later, with a call to IPropertyStorage::WritePropertyNames.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in objidl.h.