[python-win32] kernal32.DeviceIoControl Operation Aborted

Red Rackham redrackem at yahoo.com
Fri Dec 19 19:38:58 CET 2008


I think I have finally figured it out.  Thanks for the suggestion, I ran the executable (compiled C code) and it worked, and it returned 0x8B.
 
Previously I saw this value and thought was bunkum.  I thought it was incorrect because of the way ctypes encodes a string buffer: ('value', '\x8b|').  I was probably thrown off by the '|' in the string.  Not sure why that gets returned.  I guess to get a real value out of that buffer you have to use the 're' module or something.
 
So I reasoned that I must be using the wrong direction.  I had at that point changed from ...HOST2DEVICE to ...DEVICE2HOST, reasoning that a read op is going to result in data going from the device to the host.  However the way I had it before (HOST2DEVICE) was actually correct (for some reason.
 
Thanks,
Mark
 
 
 
 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20081219/f69596a0/attachment.htm>


More information about the python-win32 mailing list