I took a look through two of the C# examples, but I was unable to find my answer - could you please point me a little closer?
In GenericHID it looks like FILE_SHARE_READ | FILE_SHARE_WRITE is set both when you open for getting PID/VID and when you open to actually communicate, but GENERIC_READ | GENERIC_WRITE is only set when you actually open to communicate:
hidHandle = FileIO.CreateFile(myDevicePathName, FileIO.GENERIC_READ | FileIO.GENERIC_WRITE, FileIO.FILE_SHARE_READ | FileIO.FILE_SHARE_WRITE, IntPtr.Zero, FileIO.OPEN_EXISTING, 0, 0);
hidHandle = FileIO.CreateFile(devicePathName[memberIndex], 0, FileIO.FILE_SHARE_READ | FileIO.FILE_SHARE_WRITE, IntPtr.Zero, FileIO.OPEN_EXISTING, 0, 0);
Wouldn't this allow another process to do a full open?
Thank you
- Eric