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,275

    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,275

    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
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA