Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results


More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

Is it possible to read/write sectors of a disk using both SCSI PASS THROUGH and ATA PASS THROUGH?

kernelboikernelboi Member Posts: 21
edited June 2020 in NTDEV

If i can read sectors of a disk on a system using SCSI PASS THROUGH, then does this mean the disk doesn't support ATA pass through or any other method and i can only use SCSI to communicate with it? I'm asking this because i wrote a program that can read and write using SCSI pass through IOCTL, but when i try to use ATA pass trough it doesn't work, how can i know if the hardware supports it or not (I'm using VMware to test it)

And is there any other method other that SCSI PASS THROUGH and ATA PASS THROUGH to send IRP messages to port drivers from user-mode?

also what's the difference between SCSI_PASS_THROUGH_DIRECT and SCSI_PASS_THROUGH? do they send the IRP to different underlying driver? if so, which drivers?

Post edited by kernelboi on


  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,939

    You ought to be able to answer that question yourself. A given disk drive supports either the ATA command set or the SCSI command set.

    The SCSI command set does include the ability to send ATA pass commands, but not vice versa.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Developing Minifilters 24 May 2021 Live, Online
Writing WDF Drivers 14 June 2021 Live, Online
Internals & Software Drivers 27 September 2021 Live, Online
Kernel Debugging TBD 2021 Live, Online