Skip to content

PropertyKey GUIDs Incorrect/Missing; No PID Info #2

@CaiB

Description

@CaiB

Hello,

It appears that the GUID specified in PropertyKeys.cs for PKEY_DeviceInterface_FriendlyName is incorrectly named, as it is actually PKEY_Device_xxx.

Additionally, the two other common device PropertyKey GUIDs are absent, as found in the Microsoft docs. They are PKEY_DeviceInterface_FriendlyName(the actual one), and PKEY_Device_DeviceDesc.

I believe the corrected/added values are as follows:

PKEY_Device_FriendlyName = new Guid(0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0); // PID 14
PKEY_DeviceInterface_FriendlyName = new Guid(0x026e516e, 0xb814, 0x414b, 0x83, 0xcd, 0x85, 0x6d, 0x6f, 0xef, 0x48, 0x22); // PID 2
PKEY_Device_DeviceDesc = new Guid(0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0); // PID 2

Side note, I don't see anywhere where the PID values are defined. Is this intentional? The information currently given in PropertyKeys.cs isn't actually enough to uniquely identify the properties without the user referencing PID values from the Windows API headers. (e.g. the GUIDs for Device_FriendlyName and Device_DeviceDesc are the same, you need the different PID values in order to actually get the right info)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions