I would like to create a virtual HID device (emulate it using a driver).
It should be visible to customers who implement standard HID discovery:
- Call HidD_GetHidGuid () - Get the HID device class GUID
- Call SetupDiGetClassDevs () - Get access to a set of devices that implement the HID interface
- Call SetupDiEnumDeviceInterfaces () - For each device in the returned device set, get the interface information for all open HID interfaces.
- Call SetupDiGetDeviceInterfaceDetail () - For each interface received in the previous call, get a detailed information block for this interface. This detailed information includes a string that can be passed to CreateFile () to open the Device descriptor.
- Call SetupDiDestroyDeviceInfoList () - Free the device information set that was received in SetupDiGetClassDevs ().
The device must also support reading, so CreateFile / ReadFile will return the data I provided from the driver.
I donβt know where to start, because I donβt have much experience. in the kernel dev .: (
source share