Shell Structures


PROPERTYKEY Structure

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

Syntax

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

Members

fmtid
A unique GUID for the property.
pid

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.

Structure Information

Header and IDL fileswtypes.h, wtypes.idl
Minimum operating systems Windows Vista
Tags :


Community Content

Chris_Guzak
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



Tags : propertykey

Page view tracker