Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

get product and vendor from a device

MakMak Member Posts: 50

What is the correct way to get vendor and product from a device. I looked at WdfDeviceAllocAndQueryPropertyEx but couldnt find it.
I work on an Upperfilter keyboard driver.

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,138

    WdfDeviceQueryProperty For the Hardware ID.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • MakMak Member Posts: 50

    If I look on different devices the VID/PID is always 4 hex digit long and I also read about this in the msdn but I have here an old bluetooth keyboard which is different. The vid/pid has 5 hex digit. How should we handle this? What is the standard?

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,138

    The standard varies by bus. I suggest you write some bus-specific parsing code.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • MakMak Member Posts: 50

    thnx

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 25 Feb 2019 OSR Seminar Space
Developing Minifilters 8 April 2019 OSR Seminar Space