IOCTL_ATA_MINIPORT support in win 2008 R2

Hi All,

I am trying to send IOCTL_ATA_MINIPORT to ata miniport driver on windows server 2008 OS. However the DeviceIoControl() returns with error code 1( INCORRECT FUNCTION).

My questions is does windows 2008 K support this IOCTL.If not is there a way to send IOCTL to ATA_MINIPORT driver?

Thanks,

The question is whether or not you have followed the rules for using the IOCTL and not if the IOCTL works in Server 2008.

• If a class driver for the target type of device exists, the application must send the request to the class driver. Thus, an application can send this request directly to the system port driver for a target logical unit (LU) only if there is no class driver for the type of device connected to that LU. The system port driver does not check to determine if a device has been claimed by a class driver before processing a pass-through request. Therefore, if an application bypasses a class driver that has claimed a device and sends a pass-through request for that device directly to the port driver, a conflict for control of the device can occur between the class driver and the application.
• This request cannot be used if the command requires the underlying driver to access memory directly. If the caller’s command might require direct access to memory, use IOCTL_ATA_PASS_THROUGH_DIRECT instead.
• Applications must not attempt to send a pass-through request asynchronously. All pass-through requests must be synchronous.
• Applications do not require administrative privileges to send a pass-through request to a device, but they must have read-write access to the device.

There are then additional restrictions on how you use memory in both the Input and Output side. So … did you abide by the rules for the IOCTL?

Gary G. Little

----- Original Message -----
From: xxxxx@hcl.in
To: “Windows System Software Devs Interest List”
Sent: Thursday, December 9, 2010 5:00:52 AM
Subject: [ntdev] IOCTL_ATA_MINIPORT support in win 2008 R2

Hi All,

I am trying to send IOCTL_ATA_MINIPORT to ata miniport driver on windows server 2008 OS. However the DeviceIoControl() returns with error code 1( INCORRECT FUNCTION).

My questions is does windows 2008 K support this IOCTL.If not is there a way to send IOCTL to ATA_MINIPORT driver?

Thanks,


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer