0 out of 1 rated this helpful Rate this topic

PROPERTYKEY structure

Specifies the FMTID/PID identifier that programmatically identifies a property. Replaces SHCOLUMNID.

Syntax

typedef struct {
  GUID  fmtid;
  DWORD pid;
} PROPERTYKEY;

Members

fmtid

Type: GUID

A unique GUID for the property.

pid

Type: DWORD

A property identifier (PID). This parameter is not used as in SHCOLUMNID. It is recommended that you set this value to PID_FIRST_USABLE. Any value greater than or equal to 2 is acceptable.

Note  Values of 0 and 1 are reserved and should not be used.

Remarks

As of Windows Vista, the SHCOLUMNID structure is simply an alias for PROPERTYKEY, as shown in this declaration from Shobjidl.h.

typedef PROPERTYKEY SHCOLUMNID;

SHCOLUMNID can be considered a legacy structure with PROPERTYKEY being the new, preferred form. PROPERTYKEY has a broader purpose than SHCOLUMNID, and the new name is more descriptive of its uses.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Wtypes.h

IDL

Wtypes.idl

 

 

Send comments about this topic to Microsoft

Build date: 9/7/2011

Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ
the property system is extensible, define new properties using...
PSRegisterPropertySchema()

http://msdn.microsoft.com/en-us/library/bb762087(VS.85).aspx

read more about .propdesc files here
http://msdn.microsoft.com/en-us/library/bb773879(VS.85).aspx