Jane Chen wrote: > > Thank you for your help. > Could you please help me write better codes for GUID?
What are you going to do with it? You will get back a 20-byte string. The last 16-bytes are the binary GUID. The way you handle that depends on what you need to do with it. > You are right. I was using USB. > Based on your suggestion, I connected the SD drive directly to a PCI > bus and set buf_fmt='HHLLLL'. However, I got another error message: > (1, 'DeviceIoControl', 'Incorrect function'). I think I did not use > the function correctly. How are you specifying the volume? You should be using a string like "\\\\.\\E:" to open the volume for the E: drive (where the backslashes are doubled because of Python's string escaping). I get "incorrect function" if I try to use this on a standard disk drive. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32