I am try to use win32file to access the raw floppy disk on win98.  On WINNT
I create a handle like this:

BUFFSIZE=512
INITIAL_OFFSET=0
floppydisk=win32file.CreateFile("\\\\.\\A:",
                                         win32file.GENERIC_READ,

win32file.FILE_SHARE_READ|win32file.FILE_SHARE_WRITE,
                                         None,
                                         win32file.OPEN_EXISTING,
                                         win32file.FILE_ATTRIBUTE_READONLY,
                                         None)

win32file.SetFilePointer(floppydisk,INITIAL_OFFSET,win32file.FILE_BEGIN)

rc,data=win32file.ReadFile(floppydisk,BUFFSIZE)

However, on win98, I believe I have to use a different methodology using
DeviceIOControl.  I have yet to succeed.  Does anyone know how to access the
floppy device on win98?

Thanks,
Corey





_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to