Reading/Writing Reports From An HID Keyboard/Mouse RRS feed

  • Question

  • Hello all.  As part of a bigger cross-platform API family I've been developing for the past 6 years, i'm in the process of developing an HID API module.  Unfortunately, on Windows, I'm unable to open an HID keyboard or mouse device using CreateFile() With GENERIC_READ permissions.  This is due to Windows acquiring an exclusive file lock on the keyboard and mouse devices from what I understand.  On other platforms (Linux, Android, Mac, iOS) supported by my API, i'm able to directly read and write data to these devices using HID reports.  It is crucial for my HID module to be able to read/write reports to/from all HID devices including keyboards and mice.  Is there any possible way for me to accomplish this?  My current dev environment is a Windows 8.1 Desktop, Visual Studio 2013 Ultimate, and C/C++.  Thank you very much for your time and effort.

    • Edited by Richmar1 Monday, April 13, 2015 7:35 PM Small Title Edit
    Monday, April 13, 2015 7:29 PM