Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Devices is Modes Other than Read/Write #89

Closed
MelbourneDeveloper opened this issue Jul 28, 2019 · 1 comment
Closed

Open Devices is Modes Other than Read/Write #89

MelbourneDeveloper opened this issue Jul 28, 2019 · 1 comment

Comments

@MelbourneDeveloper
Copy link
Owner

Devices often fail when connecting to them. This probably happens because the device is not writable, yet the connection attempt is for writing. This happens on Windows HID but perhaps other connection types.

@MelbourneDeveloper
Copy link
Owner Author

See this line:

using (var safeFileHandle = APICalls.CreateFile(deviceId, APICalls.GenericRead | APICalls.GenericWrite, APICalls.FileShareRead | APICalls.FileShareWrite, IntPtr.Zero, APICalls.OpenExisting, 0, IntPtr.Zero))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant