CreateFile Error

Hi all,

i want to use the CreateFile function to get a handle to a floppy drive , but the call always fails when it is made to a floppy. The syntax is

CreateFile(‘\.\Floppy0’,GENERIC_READ or GENERIC_WRITE,(FILE_SHARE_READ or FILE_SHARE_WRITE),nil,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0);

[delphi 6]

could anyone tell me what’s wrong ?

thanks

anjita


Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs

Hello,

Use GetLastError() to know the exact cause of the error.

You may find a complete working sample to access FD’s at :
http://members.fortunecity.com/qualitysoftware/ConvFlop/ConvFlop.htm

Christiaan

Use the \.\A: name.

Max

----- Original Message -----
From: anjita jachak
To: NT Developers Interest List
Sent: Thursday, August 15, 2002 9:32 AM
Subject: [ntdev] CreateFile Error

Hi all,

i want to use the CreateFile function to get a handle to a floppy drive , but the call always fails when it is made to a floppy. The syntax is

CreateFile(‘\.\Floppy0’,GENERIC_READ or GENERIC_WRITE,(FILE_SHARE_READ or FILE_SHARE_WRITE),nil,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0);

[delphi 6]

could anyone tell me what’s wrong ?

thanks

anjita


Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs — You are currently subscribed to ntdev as: xxxxx@storagecraft.com To unsubscribe send a blank email to %%email.unsub%%