From: timlalor on
I have seen the same question posted over and over, but haven't found a
definitive answer yet:

If I mimic the remove sample in the XP DDK, I still need to reboot to
get my mirror driver out of memory. Is there a way to do this that
does not require a reboot? Forgive me if this is elementary.

Thanks,
Tim

From: Lev Kazarkin on
I'm not sure if you really mean just to deactivate the mirroring or
to remove the device completely.
Mirroring is activated and deactivated easily.
There is a registry value named "Attach.ToDesktop" under a key
SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\
Services\$(MiniportName)\Device0.
where $(MiniportName) stands for a name of your miniport.
This value is boolen. If it is 1, the driver is active.
You change the value and call Call ChangeDisplaySettingsEx() API
to apply the change. Voila.
If you actually mean a device removal (uninstall) then unfortunately what
you want is impossible in Windows 2000 and XP. Video portclass does not
handle properly the PNP functions for the device removal. Thus miniport
does not get unloaded till a reboot.

--
Best regards,
Lev Kazarkin
http://www.demoforge.com



"timlalor(a)gmail.com" wrote:

> I have seen the same question posted over and over, but haven't found a
> definitive answer yet:
>
> If I mimic the remove sample in the XP DDK, I still need to reboot to
> get my mirror driver out of memory. Is there a way to do this that
> does not require a reboot? Forgive me if this is elementary.
>
> Thanks,
> Tim
>
>
 | 
Pages: 1
Prev: Vista SCSI driver
Next: USB Imaging Device Driver