rozik
November 11th, 2001, 10:01 AM
I am writing an installer for a W2K WDM driver, and have a question/problem :
I have 2 versions of my WDM driver : Ver 1, ver 2.
I want to upgrade from version 1 (which is running) to version 2, but I cannot succeed without rebooting the system.
To do this upgrade I am doing the following :
I call the method 'UpdateDriverForPlugAndPlayDevices' (from newdev.dll) with the following relevant arguments :
- InstallFlag argument as zero(I have also tried to use INSTALLFLAG_FORCE, as documented)
- bRebootRequired as NULL
The return value of the function is true, and reboot is NOT requested by the OS.
After finishing this installation process I test for the driver version (without reboot) and see that it has not been updated.
(I test for the driver version by calling a function from this driver).
After rebboting the system, the driver has changed (I use the same test as before).
My Question : Can I update my driver without rebooting ?
I have 2 versions of my WDM driver : Ver 1, ver 2.
I want to upgrade from version 1 (which is running) to version 2, but I cannot succeed without rebooting the system.
To do this upgrade I am doing the following :
I call the method 'UpdateDriverForPlugAndPlayDevices' (from newdev.dll) with the following relevant arguments :
- InstallFlag argument as zero(I have also tried to use INSTALLFLAG_FORCE, as documented)
- bRebootRequired as NULL
The return value of the function is true, and reboot is NOT requested by the OS.
After finishing this installation process I test for the driver version (without reboot) and see that it has not been updated.
(I test for the driver version by calling a function from this driver).
After rebboting the system, the driver has changed (I use the same test as before).
My Question : Can I update my driver without rebooting ?