Hi,
I have few questions on setupDi functions and installing and uninstalling
devices.
- How do I uninstall a device from system?
- How do I rescan ( scan for hardware changes)?
Both these functionalites are available from DeviceManager. Is
CM_Reenumerate_DevNode sufficient to update system? Sometimes I have
encountered that SURPRISE_REMOVAL PNP message comes aftet short interval.I
am aslo calling IOCTL_SCSI_RESCAN_BUS and IOCTL_STORAGE_FIND_NEW_DEVICES to
handle legacy devices. Is it required?
any help is appreciated.
thanks
pashupati
check the following samples in XP DDK :
\src\setup\devcon - for reenumerating devices
\src\setup\remove - for removing devices
\src\setup\install - for installing devices
-----Original Message-----
From: Pashupati Kumar [mailto:xxxxx@legato.com]
Sent: Tuesday, October 08, 2002 2:07 PM
To: NT Developers Interest List
Subject: [ntdev] How to uninstall a device from user mode application
Hi,
I have few questions on setupDi functions and installing and uninstalling
devices.
- How do I uninstall a device from system?
- How do I rescan ( scan for hardware changes)?
Both these functionalites are available from DeviceManager. Is
CM_Reenumerate_DevNode sufficient to update system? Sometimes I have
encountered that SURPRISE_REMOVAL PNP message comes aftet short interval.I
am aslo calling IOCTL_SCSI_RESCAN_BUS and IOCTL_STORAGE_FIND_NEW_DEVICES to
handle legacy devices. Is it required?
any help is appreciated.
thanks
pashupati
You are currently subscribed to ntdev as: xxxxx@microtune.com
To unsubscribe send a blank email to %%email.unsub%%
How to uninstall a device from user mode
application>CM_Reenumerate_DevNode sufficient to update system?
Yes.
Max