get adapter type from user application: how to?

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"
 
T

Tarundeep Singh Kalra

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top