The bug I'm finding, though, is that OpenService succeeds, QueryServiceStatus succeeds, and the CloseHandle crashes. 2) If the driver fails to load, my cleanup code kicks in and a) calls DeleteService, then in a loop calls OpenService, QueryServiceStatus, and CloseHandle until the service is completely shut down. There are two separate issues (please provide feedback if you think I should have started two threads): 1) When starting my driver CreateService succeeds, but StartService fails and GetLastError returns ERRORFILENOTFOUND. I'm now trying to test on a physical machine (a Dell laptop) and am having problems. Reboot on the VPC is 20 times faster than on my physical test machine). I have been toiling for the last few months (learning and) porting my WDM driver over to WDF and have finally gotten (most) everything to work on my VirtualPC (which BTW, makes developing a driver SOOOO much easier.
0 Comments
Leave a Reply. |