Tech Support > Microsoft Windows > Drivers > lifetime of device instance handles
lifetime of device instance handles
Posted by igor on June 23rd, 2005


I have a quesiton about device instance handles, used by CM* functions like
CM_Get_Child and by certain DiSetup* functions. Another example of "device
instance handle" I am talking about: DevInst member of SP_DEVINFO_DATA.
So, now the quesiton: are there any rules regarding the "lifetime" of device
instance handles, associated with particular devices? For example, if
device instance handle was associated with particular USB device A and that
device A was unplugged, but the new device B was plugged instead, is it
possible that the same device handle will be reused by the system for
device B ? Or device instance handles are unique until the reboot? In other
words, my question is wheather device instance handle could be used to
identify the device [between system started and next reboot ]?
Many thanks!
Igor.


Posted by Eliyas Yakub [MSFT] on June 24th, 2005


Answer to all your questions is NO.

--
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/driver/default.mspx
http://www.microsoft.com/whdc/driver/kernel/KB-drv.mspx



"igor" <no-spam@hotmail.com> wrote in message
news:%23DeR%23UCeFHA.3816@TK2MSFTNGP10.phx.gbl...



Similar Posts