Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PROPERTYKEYs and GUIDs in Windows Portable Devices

banner art
PreviousNext

PROPERTYKEYs and GUIDs in Windows Portable Devices

A property or command is identified by a PROPERTYKEY structure. A PROPERTYKEY structure is made up of two parts: a GUID (the fmtid member) and a DWORD (the pid member). The GUID part is used to indicate the category the property or command belongs to (that is, related properties belong to the same category and related commands belong to the same category; therefore they will have the same fmtid). The DWORD part indicates the property or command ID, and is used to distinguish the individual properties or commands within a property or command category (that is, the pid values for properties or commands in the same category will be different).

The reference section of this document describes all the PROPERTYKEY values defined by WPD; these values correspond to commands, properties, and resources. If you create a custom PROPERTYKEY value, you should define a new GUID category; do not reuse the WPD GUID values or you risk conflicting with existing and future WPD-specified PROPERTYKEYs.

See Also

PreviousNext
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.