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

Not all HID devices listed #1

Open
LukeOwlclaw opened this issue Sep 21, 2015 · 0 comments
Open

Not all HID devices listed #1

LukeOwlclaw opened this issue Sep 21, 2015 · 0 comments

Comments

@LukeOwlclaw
Copy link

I notice that my RFID card reader was not listed. The problem was CreateFile in HIDBrowser.cs.

Instead of

return Native.CreateFile(path,
    Native.GENERIC_READ | Native.GENERIC_WRITE,
    Native.FILE_SHARE_READ | Native.FILE_SHARE_WRITE,
    IntPtr.Zero, Native.OPEN_EXISTING, 
    Native.FILE_FLAG_OVERLAPPED,
    IntPtr.Zero);

I used

return Native.CreateFile(path,
    0,
    Native.FILE_SHARE_READ | Native.FILE_SHARE_WRITE,
    IntPtr.Zero, 
    Native.OPEN_EXISTING, 
    0,
    IntPtr.Zero);

Listing works fine now.

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