I get a problem in developping an upper filter driver for the disk class
driver. Here is the problem.
After I installing the filter driver and rebooting the machine, there will
be a dialog box. Since I’m not using an English Windows system, I can only
translate it to show its meaning: “Your hardware settings have changed, the
software of this hardware needs to reboot. You should reboot your system to
enable these changes.” But in fact, the driver already works.
How can I avoid this dialog?
For your information, I install the driver in this way (Suppose my driver
name is “HDFilter”):
Create a service
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HDFilter
“Start”=dword:00000000
“ErrorControl”=dword:00000001
“Type”=dword:00000001
“DisplayName”=“TestFilter”
“Group”=“Filter”
Goto
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E967-E325-11C
E-BFC1-08002BE10318}, Change the “UpperFilters” value from “PartMgr” to
“PartMgr HDFilter”
OS: Microsoft Windows XP Professional (Version 2002, Service Pack 2)
If your driver change some important data of the disk, this dialog pops up.
I don’t know what data your driver changes. As I know, the signature in the
MBR causes this problem.
–
Regards,
ZG [@ Sydney]
Windows Driver Developer
“GrepAll” wrote in message news:xxxxx@ntdev… Hi, all
I get a problem in developping an upper filter driver for the disk class driver. Here is the problem.
After I installing the filter driver and rebooting the machine, there will be a dialog box. Since I’m not using an English Windows system, I can only translate it to show its meaning: “Your hardware settings have changed, the software of this hardware needs to reboot. You should reboot your system to enable these changes.” But in fact, the driver already works.
How can I avoid this dialog?
For your information, I install the driver in this way (Suppose my driver name is “HDFilter”): 1. Create a service HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HDFilter “Start”=dword:00000000 “ErrorControl”=dword:00000001 “Type”=dword:00000001 “DisplayName”=“TestFilter” “Group”=“Filter” 2. Goto HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E967-E325-11CE-BFC1-08002BE10318}, Change the “UpperFilters” value from “PartMgr” to “PartMgr HDFilter”
OS: Microsoft Windows XP Professional (Version 2002, Service Pack 2)
Adding the filter to the WDM stack requires the stack restart - stop, then
start. Some stacks are not stoppable - for instance, the boot disk stack, or
any component can impose a veto on stop for some stack.
So, if Device Manager wants to stop the stack (for restart to do the
updates usually), and stop is vetoed - then “You must reboot” window is shown.
----- Original Message -----
From: “ZG” Newsgroups: ntdev To: “Windows System Software Devs Interest List” Sent: Friday, January 20, 2006 1:21 PM Subject: Re:[ntdev] How can I get rid of this dialog in the first time boot after the filter driver installed
> If your driver change some important data of the disk, this dialog pops up. > I don’t know what data your driver changes. As I know, the signature in the > MBR causes this problem. > > – > > Regards, > ZG [@ Sydney] > Windows Driver Developer > > > “GrepAll” wrote in message news:xxxxx@ntdev… > Hi, all > > I get a problem in developping an upper filter driver for the disk class > driver. Here is the problem. > > After I installing the filter driver and rebooting the machine, there will > be a dialog box. Since I’m not using an English Windows system, I can only > translate it to show its meaning: “Your hardware settings have changed, the > software of this hardware needs to reboot. You should reboot your system to > enable these changes.” But in fact, the driver already works. > > How can I avoid this dialog? > > For your information, I install the driver in this way (Suppose my driver > name is “HDFilter”): > 1. Create a service > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HDFilter > “Start”=dword:00000000 > “ErrorControl”=dword:00000001 > “Type”=dword:00000001 > “DisplayName”=“TestFilter” > “Group”=“Filter” > 2. Goto > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E967-E325-11CE-B FC1-08002BE10318}, > Change the “UpperFilters” value from “PartMgr” to “PartMgr HDFilter” > > OS: Microsoft Windows XP Professional (Version 2002, Service Pack 2) > > Regards, > GrepAll > > > > — > Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 > > You are currently subscribed to ntdev as: xxxxx@storagecraft.com > To unsubscribe send a blank email to xxxxx@lists.osr.com
Since he has restart the system after the installation of the filter driver,
I think the device stack has already been restarted.
–
Regards,
ZG [@ Sydney]
Windows Driver Developer
“Maxim S. Shatskih” wrote in message news:xxxxx@ntdev… > Adding the filter to the WDM stack requires the stack restart - stop, > then > start. Some stacks are not stoppable - for instance, the boot disk stack, > or > any component can impose a veto on stop for some stack. > > So, if Device Manager wants to stop the stack (for restart to do the > updates usually), and stop is vetoed - then “You must reboot” window is > shown. > > Maxim Shatskih, Windows DDK MVP > StorageCraft Corporation > xxxxx@storagecraft.com > http://www.storagecraft.com > > ----- Original Message ----- > From: “ZG” > Newsgroups: ntdev > To: “Windows System Software Devs Interest List” > Sent: Friday, January 20, 2006 1:21 PM > Subject: Re:[ntdev] How can I get rid of this dialog in the first time > boot > after the filter driver installed > > >> If your driver change some important data of the disk, this dialog pops >> up. >> I don’t know what data your driver changes. As I know, the signature in >> the >> MBR causes this problem. >> >> – >> >> Regards, >> ZG [@ Sydney] >> Windows Driver Developer >> >> >> “GrepAll” wrote in message news:xxxxx@ntdev… >> Hi, all >> >> I get a problem in developping an upper filter driver for the disk class >> driver. Here is the problem. >> >> After I installing the filter driver and rebooting the machine, there >> will >> be a dialog box. Since I’m not using an English Windows system, I can >> only >> translate it to show its meaning: “Your hardware settings have changed, >> the >> software of this hardware needs to reboot. You should reboot your system >> to >> enable these changes.” But in fact, the driver already works. >> >> How can I avoid this dialog? >> >> For your information, I install the driver in this way (Suppose my driver >> name is “HDFilter”): >> 1. Create a service >> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HDFilter >> “Start”=dword:00000000 >> “ErrorControl”=dword:00000001 >> “Type”=dword:00000001 >> “DisplayName”=“TestFilter” >> “Group”=“Filter” >> 2. Goto >> > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E967-E325-11CE-B > FC1-08002BE10318}, >> Change the “UpperFilters” value from “PartMgr” to “PartMgr HDFilter” >> >> OS: Microsoft Windows XP Professional (Version 2002, Service Pack 2) >> >> Regards, >> GrepAll >> >> >> >> — >> Questions? First check the Kernel Driver FAQ at > http://www.osronline.com/article.cfm?id=256 >> >> You are currently subscribed to ntdev as: xxxxx@storagecraft.com >> To unsubscribe send a blank email to xxxxx@lists.osr.com > > >
Are you supporting QueryRemove correctly? The storage stack has a tendency
to want to tear itself down twice for each new device, and you have to agree
to the teardown or you get the reboot required popup despite the fact that
you are installed and operational.
=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032 www.hollistech.com
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of GrepAll
Sent: Thursday, January 19, 2006 10:03 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How can I get rid of this dialog in the first time boot
after the filter driver installed
Hi, all
I get a problem in developping an upper filter driver for the disk class
driver. Here is the problem.
After I installing the filter driver and rebooting the machine, there will
be a dialog box. Since I’m not using an English Windows system, I can only
translate it to show its meaning: “Your hardware settings have changed, the
software of this hardware needs to reboot. You should reboot your system to
enable these changes.” But in fact, the driver already works.
How can I avoid this dialog?
For your information, I install the driver in this way (Suppose my driver
name is “HDFilter”):
Create a service
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HDFilter
“Start”=dword:00000000
“ErrorControl”=dword:00000001
“Type”=dword:00000001
“DisplayName”=“TestFilter”
“Group”=“Filter”
Goto
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4D36E967-E325-11C
E-BFC1-08002BE10318}, Change the “UpperFilters” value from “PartMgr” to
“PartMgr HDFilter”
OS: Microsoft Windows XP Professional (Version 2002, Service Pack 2)