Article ID: 241374 - Last Review: July 22, 2004 - Revision: 3.1 INFO: Read and Write Access Required for SCSI Pass Through RequestsThis article was previously published under Q241374 SUMMARY
Starting with Windows NT 4.0 Service Pack 4 and beyond (including Windows 2000), there are new access requirements for SCSI (small computer system interface) pass through requests. For SCSI pass through requests, both GENERIC_READ and GENERIC_WRITE access must be specified in the dwDesiredAccess parameter of the CreateFile call. If both read and write access are not specified, the DeviceIoControl call will fail with ERROR_ACCESS_DENIED (5L). Note that only members of the administrator's group have the correct authority to send SCSI pass through requests. Users without administrator authority typically fail either CreateFile or DeviceIoControl with ERROR_ACCESS_DENIED (5L). MORE INFORMATION
Following is a code snippet showing a proper call to CreateFile. | Article Translations
|
Back to the top
