Re: Save usage of plugged in USB thumb drive?
- From: Uwe Sieber <mail@xxxxxxxxxxxxx>
- Date: Thu, 28 Feb 2008 01:14:59 +0100
Carsten von der Lippe wrote:
When we use an USB thumb drive we encountered the behaviour
that if we access the drive right after the USB flash drive
is plugged in for the first time and the drive letter is
assigned, we see a message box telling us
"System Settings Change Windows has finished installing new devices. The software that supports your device requires that you restart your computer. You must restart your computer before new settings will take effect. Do you want to restart your computer now?"
This is problematic, because our terminals are running unattended
and we definitely do not want to have such kind of dialogs.
We also have analysed that this dialog box does not appear
if we wait a few seconds after the drive letter is assigned.
On first arrival Windows plays the come, go and come
again game.
Check the drive's and volume's install state (availlable
since XP) by CM_Get_DevInst_Registry_Property with
CM_DRP_INSTALL_STATE or SetupDiGetDeviceRegistryProperty
SPDRP_INSTALL_STATE.
If it is CM_INSTALL_STATE_INSTALLED (0) then it's ok to access
the drive. If it's CM_INSTALL_STATE_FINISH_INSTALL (3) then
it will go and come again. Under W2K I've found no solution.
Uwe
.
- Prev by Date: Re: IO space access time
- Next by Date: RE: xp spooler memory leakage?
- Previous by thread: Re: Save usage of plugged in USB thumb drive?
- Next by thread: IO space access time
- Index(es):
Relevant Pages
|