bilm
2009-06-22 16:14:53 UTC
I've read the MS SDK & DDK on the subject and it seems to contain
information that conflicts with some of the posts from experts about
whether "claimed" status is relevant or not.
Some say these devices are always claimed by the port driver
early in the boot process so you always need to use the drive letter
"\\.\D:" with DevIO and others say you need to check the port driver
"claimed" status and if it's not claimed use "\\.\ScsiN:" where N = 0, 1, 2,
etc. but if it is already claimed then use the drive letter.
The handle is used most often for the SPTI
IOCTL_SCSI_PASS_THROUGH_DIRECT
but I also use it for other IOCTLs related to DVD & CD devices.
There is also the other related issue of user access. I know a user does not
have to have full Admin. Privs. for apps using the SPTI but they do have to
have write access ... ? Right ? How do I deal with that ?
Do I have to write my own kernel mode device driver ? Please say no.
bilm
information that conflicts with some of the posts from experts about
whether "claimed" status is relevant or not.
Some say these devices are always claimed by the port driver
early in the boot process so you always need to use the drive letter
"\\.\D:" with DevIO and others say you need to check the port driver
"claimed" status and if it's not claimed use "\\.\ScsiN:" where N = 0, 1, 2,
etc. but if it is already claimed then use the drive letter.
The handle is used most often for the SPTI
IOCTL_SCSI_PASS_THROUGH_DIRECT
but I also use it for other IOCTLs related to DVD & CD devices.
There is also the other related issue of user access. I know a user does not
have to have full Admin. Privs. for apps using the SPTI but they do have to
have write access ... ? Right ? How do I deal with that ?
Do I have to write my own kernel mode device driver ? Please say no.
bilm