Device drivers handle from GetHandles2 any preferences
Colin (478) 2433 posts |
In the USB docs So the options are: 1. Change how gethandles2 works so that if stream == 0 R6 is returned but the values of r3,r4,r5 are invalid instead of returning an error – as stream == 0 would do now. Not happy with this – changes behaviour and not intuative without reading that r3,r4,r5 are invalid. or 2. Add a GetDeviceHandle action code to DeviceFS_CallDevice. This is my prefered way but its a bit embarassing. First we have GetHandles then GetHandles2 and now GetDeviceHandle. Any preferences – I’ll implement 2 unless there are any objections |