Re: DeviceIoControl fail in windows server 2003 standard edition

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On 30 Apr 2007 12:46:06 -0700, fred <guofred@xxxxxxxxx> wrote:

Thanks Maxim,
this is funny.
under windows server 2003.
"\\.\DriveLetter:" work with pass throu
(IOCTL_SCSI_PASS_THROUGH_DIRECT) but didn't work with MS
inquiry(IOCTL_SCSI_GET_INQUIRY_DATA).

"\\.\ScsiN:" work with MS inquiry ,but didn't work with pass throu.

looks like I have to scan from D: to Z: by sending CDB inquiry to get
device list. any other method to get the device list?
Thanks
Fred


Use the SetupDi* api to get a list of disk devices (drive letters are
not disk devices they are volumes) and get the scsi address of each
disk. Correlate the scsi address to the HBA of interest.



=====================
Mark Roddy DDK MVP
Windows Vista/2003/XP Consulting
Device and Filesystem Drivers
Broken Driver Code? Call us.
Hollis Technology Solutions 603-321-1032
www.hollistech.com
.



Relevant Pages