Something like that I guess...
What I am interested in though is whether there is anything I can do to stop the blue screens because they are, to say the least, highly annoying!
To put the example in context, the first two lines are part of a function called MPUSBOpen, the DeviceIoControl call is part of another function called MPUSBGetDeviceDescriptor, and the CloseHandle statement is part of a function called MPUSBClose. These three functions are part of the dll and I cannot change what is in them, but it is up to me to call them from my own code, so I could potentially insert some statements where the ellipses ('...') are in the original code snippet I sent.
Is there anything I could try adding to resolve the blue screen?
Philipp