Jan -
I noticed this line in one of your demos, and was worried about the type safety:
IntPtr pDevicePathName = new IntPtr(detailDataBuffer.ToInt32() + 4);
(Generic_hid_cs -> DeviceManagement.cs)
In 64 bit environment, this will chop off the high word. Are we guaranteed that this will be in the lower 4 gigs?
I replaced it with this to be on the safe side:
IntPtr pDevicePathName = detailDataBuffer + 4;