Re: IOCTL_ATA_PASS_THROUGH_DIRECT
From: Phil Barila (PBarila_at_Barila.com)
Date: 12/29/04
- Next message: Nadav: "File system hooking"
- Previous message: George M. Garner Jr.: "IOCTL_ATA_PASS_THROUGH_DIRECT"
- In reply to: George M. Garner Jr.: "IOCTL_ATA_PASS_THROUGH_DIRECT"
- Next in thread: George M. Garner Jr.: "Re: IOCTL_ATA_PASS_THROUGH_DIRECT"
- Reply: George M. Garner Jr.: "Re: IOCTL_ATA_PASS_THROUGH_DIRECT"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Dec 2004 00:53:43 -0700
"George M. Garner Jr." <gmgarner@newsgroup.nospam> wrote in message
news:eBU17bX7EHA.3828@TK2MSFTNGP09.phx.gbl...
> Has anyone gotten this to work on Windows XP SP2 or later? I am trying to
> send an ATA IDENTIFY DEVICE command and I get 28 bytes returned and an
entry
> in the eventlog that:
> "The device, \Device\Ide\IdePort0, did not respond within the timeout
> period." I am using a 5 second timeout.
>
> I assume that IOCTL_ATA_PASS_THROUGH_DIRECT works similar to
> IOCTL_SCSI_PASS_THROUGH_DIRECT and that
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/storage/hh/storage/structs-IDE_e59bb754-2ad4-49d0-b68c-8ef7b6273af5.xml.aspis
similarly misdocumented so that ATA_FLAGS_DATA_OUT really means "Readdata
from the device."Regards,George.
>
Your link is broken, but the online documentation of the
ATA_PASS_THROUGH_DIRECT structure is reversed from the Jan 2005 MSDN Library
documentation.
The Jan 2005 MSDN Library agrees with your conclusion that
ATA_FLAGS_DATA_OUT means read from the device. However, my working code
that uses IOCTL_ATA_PASS_THROUGH_DIRECT sets ATA_FLAGS_DATA_IN when reading
data from the device, and the online docs usually reflect what the next MSDN
library will look like, so I'm thinking that this is a recent doc fix, and
your problem is elsewhere.
Care to post your code?
Phil
-- Philip D. Barila Windows DDK MVP Seagate Technology LLC (720) 684-1842 As if I need to say it: Not speaking for Seagate. E-mail address is pointed at a domain squatter. Use reply-to instead.
- Next message: Nadav: "File system hooking"
- Previous message: George M. Garner Jr.: "IOCTL_ATA_PASS_THROUGH_DIRECT"
- In reply to: George M. Garner Jr.: "IOCTL_ATA_PASS_THROUGH_DIRECT"
- Next in thread: George M. Garner Jr.: "Re: IOCTL_ATA_PASS_THROUGH_DIRECT"
- Reply: George M. Garner Jr.: "Re: IOCTL_ATA_PASS_THROUGH_DIRECT"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|