which build of Vista are you running?
â I can spell, I just canât type.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Wednesday, September 13, 2006 4:47 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] question about starting/stopping a serviceâŚ
I tried using the â!wdfkd.wdfdriverinfoâ command, but I get an error
saying that KD could not find my driver in the wdfldr client list.
Running â!wdfkd.wdfldrâ returns âerror: Could not retrieve
wdfldr!WdfLdrGlobalsâ. I have the latest symbols installed, and they are
in my search path. Did I miss a step somewhere?
Thanks,
âJeremy
Bob Kjelgaard wrote:
It certainly sounds like you have a handle open somewhere, or a
reference that wasnât released.
If itâs still a KMDF Driver, have you tried using the Wdf verifier and
a trace? It can help point to something left out [you can count opens
and closes].
You can also use the KD Extension !wdfdriverinfo to dump all the
objects remaining in your driver, and see if itâs what you expect it
to be.
You can also just break into the debugger and check the reference
counts on your device object and driver object (assuming you know the
Devobj address). But they wonât tell you why they are what they are.
Also, if this happens to be the driver thatâs emulating a storage
device, do you have a command prompt open with the current directory
pointing at the virtual device? That leaves a file open on the
device, IIRC.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Wednesday, September 13, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] question about starting/stopping a serviceâŚ
I inserted a wait loop (5 times, 1 second apart) and the current state
is continuously SERVICE_STOP_PENDING. As far as I can tell all of my
file handles are closed, and everything is properly cleaned up. What
kinds of things will prevent a service from shutting down?
In response to Garyâs question, this is a software-only driver based
on the nonpnp KMDF sample.
âJeremy
King Brian wrote:
> After the call to ControlService, are you waiting for the service to
> stop? You can call QueryServiceStatus in a loop and wait until
> dwCurrentState <> SERVICE_STOP_PENDING, and then you can call
> DeleteService.
>
>
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer