Raw PDO... how to make it associated correctly with a device
-
Hi, I'm trying to setup a Raw PDO. I'm trying to do this because i'm writing a driver which is based on the hidfx2usb sample and it maps the usb device into a hid device. the thing is that i can't access directly the device from the user space because the hid class blocks the requests. i've been told to create a raw pdo device to have direct access to the device. i had a look to kbfiltr and there is created a pdo, but the example registers a pdo for a keyboard and my device is a usb device. my question is about how to associate the pdo to the usb device. in the example the base string for the pdo registering is this: #define KBFILTR_DEVICE_ID L"{A65C87F9-BE02-4ed9-92EC-012D416169FA}\\KeyboardFilter\0" How should I register a pdo for a usb device? Thanks, Nuno
-
Hi, I'm trying to setup a Raw PDO. I'm trying to do this because i'm writing a driver which is based on the hidfx2usb sample and it maps the usb device into a hid device. the thing is that i can't access directly the device from the user space because the hid class blocks the requests. i've been told to create a raw pdo device to have direct access to the device. i had a look to kbfiltr and there is created a pdo, but the example registers a pdo for a keyboard and my device is a usb device. my question is about how to associate the pdo to the usb device. in the example the base string for the pdo registering is this: #define KBFILTR_DEVICE_ID L"{A65C87F9-BE02-4ed9-92EC-012D416169FA}\\KeyboardFilter\0" How should I register a pdo for a usb device? Thanks, Nuno
When the framework creates a device object, it always sets the FILE_DEVICE_SECURE_OPEN flag so that the operating system will check a device's security descriptor before allowing an application to access any names within the device's namespace. Controlling Device Access in Framework-Based Drivers[^] Controlling Device Namespace Access[^] How safe is your device namespace?[^] Best Wishes, -David Delaune