General Query..

Hello,

  1. Does a kernel mode / user mode device driver get unloaded when the
    device
    is plugged out of the bus? Who unloads it? (pnp Manager)

  2. If the answer to the above question is YES, then
    consider a case when the device is plugged out and immediately plugged
    in.
    We have a requirement to maintain some information of the state of the
    driver before unloading. How does one do it???
    Can we maintain a process or a library in the user mode which keeps
    track of
    this information? If somebody could give some suggestions as to how this
    can
    be implemented, it would be helpful to us.

Thanks!
Rgds,
Sunil


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> 1. Does a kernel mode / user mode device driver get unloaded when the

device is plugged out of the bus? Who unloads it? (pnp Manager)

Yes. PnP Manager.

  1. If the answer to the above question is YES…
    We have a requirement to maintain some information of the state of the
    driver before unloading. How does one do it???

Store the information in the registry from your unload routine?

Peter
OSR Open Systems Resources, Inc.
http://www.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com