read failure on physicaldrive

hi,
i am trying to read from physicaldrive1. I am able to open the drive but
ReadFile fails with the error code Incorrect Function. I have checked the
memory alignment, size and offset requirement. can someone tell me why is
this error coming?

tia
pash

----- Original Message -----
From: “Maxim S. Shatskih”
To: “NT Developers Interest List”
Sent: Wednesday, September 05, 2001 7:33 PM
Subject: [ntdev] Re: Interfacing nonPnP devices to PnP device drivers (Win
98/2000)

> > Someone has suggested me to create a filter driver to be attached to
> > Serial, the task of that driver is to force the enumeration of my
device.
> > Now the device driver receives PnP notifications about new device.
> >
> > Microsoft in MSDN suggests to use IoReportDetectedDevice() function to
> > force IoManager to enumerate the device, then the device driver will
> > receive PnP events as if the device was PnP compliant.
> >
> > Which of two ways (or none) is the best?
>
> First (private SERENUM for your device only) seems to be better.
> At least you will have a sane device tree in the PnP manager with your
> device under the serial port.
>
> Max
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@Legato.COM
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com