Re: IOCTL_ATA_PASS_THROUGH_DIRECT

From: Phil Barila (PBarila_at_Barila.com)
Date: 12/29/04


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.


Relevant Pages

  • Re: What Mac can beat this for the same or less?
    ... HD Video Tuner ... Anyway with Windows you don't have to worry about this. ... This means that if it is written by a half way experienced programmer, the GUI interface code is ... written seperately from the real working code, which makes this distinction a complete non issue. ...
    (comp.sys.mac.advocacy)
  • Re: Odd behavior...
    ... > the reinstall. ... Deleting the shelliconcache.dat won't hurt, ... Philip D. Barila Windows DDK MVP ... Seagate Technology LLC ...
    (microsoft.public.windows.file_system)
  • Re: If then (else?) ...
    ... Microsoft MVP [Windows] ... | getting effective, working code. ... | Sub AddNewEntry() ...
    (microsoft.public.excel.programming)
  • Re: Directory.GetCurrentDirectory
    ... of Windows CE OS, please take a look at the ".NET Compact FrameWork ... online documentation if you have internet access. ... | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Get get include pages to work...
    ... You may wanna check the ... Can you show a relevant snippet of your working code? ... If you echo a string following the require, ... I will check the docs to see if windows will support both slashes ...
    (comp.lang.php)