HID forward support on vhidmini2 driver sample

Dayananda Kempapura Thippanna 0 Reputation points
2024-10-09T11:48:53.1766667+00:00

Hi All,

I am new to windows driver development. I am trying to work on HID forwarding to remote machine using Virtual HID driver. While exploring I came across of vhidmini2 driver

https://github.com/microsoft/Windows-driver-samples/tree/616b1914cf05f0aea9c40b10009bd7be0354c28b/hid/vhidmini2

I am able to bring up the vhidmini2 on windows 11. But the driver does not support the HID forwarding feature to Remote machine using RDC method. I tried to go through the documentation on supporting HID forward on virtual HID device. But did not find enough information. I am looking for answers for the below questions:

Questions 1: Is it possible to support HID forwarding to RDP server on Vhidmini2 driver sample?

Questions 2: If yes, can you point me to the right resources from where I can learn and implement the feature in this driver? If there are any standard procedures to be followed to support this feature, do let me know.

Thanks in advance!

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,597 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,652 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
104 questions
0 comments No comments
{count} votes

Accepted answer
  1. Daisy Zhou 23,971 Reputation points Microsoft Vendor
    2024-10-11T07:26:47.83+00:00

    Hello Dayananda Kempapura Thippanna,

    Thank you for posting in Q&A forum.
    Here are the answers for your references.

    1. Yes, it is possible to support HID (Human Interface Device) forwarding to an RDP (Remote Desktop Protocol) server using the Vhidmini2 driver sample. However, this requires significant modifications to the driver to handle HID input and forward it appropriately over RDP.
    2. Vhidmini2 Driver Sample on GitHub:

    https://github.com/Microsoft/Windows-driver-samples/tree/main/hid/vhidmini2

    Creating WDF HID Minidrivers:

    https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/creating-umdf-hid-minidrivers

    Human Input Devices Design Guide:

    https://learn.microsoft.com/en-us/windows-hardware/drivers/hid/

    Remote Desktop Services (RDS) Documentation:

    https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/welcome-to-rds

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


1 additional answer

Sort by: Most helpful
  1. Dayananda Kempapura Thippanna 0 Reputation points
    2024-10-11T11:46:00.8+00:00

    Hi Daisy Zhou,

    Thanks for the update.

    Can you please share reference HID driver source code which supports HID forwarding to RDP server? I would like to use this as reference for my implementation.

    Thanks in advance.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.