Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. Raw PDO... how to make it associated correctly with a device

Raw PDO... how to make it associated correctly with a device

Scheduled Pinned Locked Moved Hardware & Devices
tutorialquestionworkspace
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sinosoidal
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • S sinosoidal

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups