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
 
 
 
 


      
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to