get adapter type from user application: how to?

  • Thread starter Thread starter igor
  • Start date Start date
I

igor

What is the best way to get adapter type from the user app? There is
STORAGE_BUS_TYPE enumerator which seems to do the job, and it also looks
like IOCTL_STORAGE_QUERY_PROPERTY is the way to go.

my questions:

1) is it [i.e. IOCTL_STORAGE_QUERY_PROPERTY ] the right way to go or there
is better/simpler way?

2) Any precuations/issues while issuing IOCTL_STORAGE_QUERY_PROPERTY from
user app ?

3) what if device is claimed, will IOCTL_STORAGE_QUERY_PROPERTY succeed?

4) DDK doc says that "Only Plug and Play drivers can issue
IOCTL_STORAGE_QUERY_PROPERTY requests. Legacy drivers should use
IOCTL_SCSI_GET_INQUIRY_DATA and IOCTL_SCSI_GET_CAPABILITIES to get inquiry
and capabilities data". What will be the result or side effect of issuing
IOCTL_STORAGE_QUERY_PROPERTY against non-PNP device/driver?

Many thanks!
Igor.
P.S.
if you want to contact me by e-mail, replace "no-spam" part in the e-mail
address from this message with the following literal "iholodov"
 
igor said:
What is the best way to get adapter type from the user app? There is
STORAGE_BUS_TYPE enumerator which seems to do the job, and it also looks
like IOCTL_STORAGE_QUERY_PROPERTY is the way to go.

my questions:

1) is it [i.e. IOCTL_STORAGE_QUERY_PROPERTY ] the right way to go or there
is better/simpler way?

2) Any precuations/issues while issuing IOCTL_STORAGE_QUERY_PROPERTY from
user app ?

3) what if device is claimed, will IOCTL_STORAGE_QUERY_PROPERTY succeed?

4) DDK doc says that "Only Plug and Play drivers can issue
IOCTL_STORAGE_QUERY_PROPERTY requests. Legacy drivers should use
IOCTL_SCSI_GET_INQUIRY_DATA and IOCTL_SCSI_GET_CAPABILITIES to get inquiry
and capabilities data". What will be the result or side effect of issuing
IOCTL_STORAGE_QUERY_PROPERTY against non-PNP device/driver?

Many thanks!
Igor.
P.S.
if you want to contact me by e-mail, replace "no-spam" part in the e-mail
address from this message with the following literal "iholodov"
try the IPhelper API's they are really easy
 
Back
Top