You can try using IoInvalidateDeviceState on your device or
IoInvalidateDeviceRelations on the parent bus device (if you can get to it.)
If successful this will result in a surprise removal, which is probably not
what you want. If devcon can force a re-enumeration of the bus (which I
believe it can) then you can do this all through user mode using the CM_*
api documented in the ddk. A simple bus re-enumeration will once again bring
up the surprise removal nonsense, however you can probably work out some
arrangement of application/driver communication plus CM_* api to more or
less do what the ‘safely remove hardware’ thing is doing plus coordinate
that with switching modes on your physical device.
=====================
Mark Roddy
From: Gil Mizrahi [mailto:xxxxx@Gntsteps.com]
Sent: Wednesday, May 19, 2004 11:01 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] PCMCIA switch
Hi,
We have a PCMCIA device that can expose two different devices, one
in a time. By default the device exposed as a modem but if we change one of
the devices registers the device exposed as a WiFi card. How can we cause
the plug and play manager / the PCMCIA bus driver to notice that the modem
is removed and that there is a new device (the WiFi card) in the PCMCIA
slot?
Thanks,
Gil
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com