Chi Tai wrote:
Thanks Tim,
i also tried this, but this call returns the following error:
"DeviceIoControl() argument 3 must be string or read-only buffer, not int"
Yes, I should have realized. You need to convert this into a 4-byte string:
import struct
handle = struct.pack("<L", ReadEvent.handle )
ret = DeviceIoControl( hDevice, IOCTL_SET_READ_EVENT, handle, 0, None )
-- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc.
_______________________________________________ Python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
