Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Driver not stopping when given stop command

Reply
Thread Tools Display Modes

Driver not stopping when given stop command

 
 
Kay Yes
Guest
Posts: n/a

 
      03-10-2011
Hi All,

I have a WDM driver to access some ports and read data from it.
Previously we load the driver from our application dynamically and
unload it after use. Now I'm going for WHQL signing for our driver so
I'm installing my driver using an INF under sample class. The driver
is getting installed and the service also starts running. The problem
is during uninstall, the system asks for reboot to complete uninstall
process. I want to avoid reboot as it is not recommended on Server
2008 OS. During unisntall, the following error is logged in the file
"setupapi.dev" in INF folder.


dvi: {Remove DEVICE}
dvi: InstanceID = 'ROOT\CMOSDRV\0000'
dvi: Devnode Status = 0x0180340b
dvi: CM_Query_And_Remove_Subtree_Ex returns
0x00000017
dvi: Devnode Status after
CM_Query_And_Remove_Subtree_Ex = 0x0180340b
! dvi: Query-removal was vetoed by ROOT\CMOSDRV\0000
(veto type 1: PNP_VetoLegacyDevice)
! dvi: Setting needs reboot
! dvi: Query-and-Remove failed: 0x17:
CR_REMOVE_VETOED.
dvi: {Delete DEVICE}
dvi: Device Instance uninstalled.
dvi: {Delete DEVICE exit (0x00000000)}
dvi: {Remove DEVICE exit (0x00000000)}


After some analysis, I found that the error CR_REMOVE_VETOED occurs if
driver is associated by a service or application. So when i gave the
command "sc stop CmosDrv" the driver cannot be stopped and it displays
the following error:


[SC] ControlService FAILED 1052:
The requested control is not valid for this service.


What might be the reason for Driver not stopping ? Any idea on this
would be helpful as I'm new to the Driver thing.

Thanks in Advance


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DTM Studio 1.5 New Submission Fails Ken Spikowski Windows Vista Drivers 1 02-25-2010 06:52 PM
What's the different for PNPDTest between WLK 1.5 and WLK 1.2 Wayne Windows Vista Drivers 2 01-18-2010 08:32 PM
Slow Vista startup Jedi940 Windows Vista Performance 1 01-13-2008 08:50 PM
BUGCODE_USB_DRIVER with external USB HDD PHILIPS Deathwing00 Windows Vista Hardware 11 06-15-2007 07:02 PM
americas army stuttering under vista premium ernie Windows Vista Games 0 02-27-2007 10:20 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59