-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change IOWrite to only use WriteFile
See https://msdn.microsoft.com/en-us/library/windows/hardware/ff543402(v=vs.85).aspx. It is recommended to use WriteFile over HidD_SetOutputReport. Therefore stack distinction is not needed anymore. Wait for completion was added even if the written bytes are not requested. Otherwise a new Write Request, while another is still pending, may interfere.
- Loading branch information
Showing
2 changed files
with
48 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters