Environment versions
Network:
Windows 2003 Server
>>Tried using SetServiceStatus instead but get exactly the same problem.
>>Both calls to SetServiceStatus() appear to work OK (return true and no error code) but the check on acceptedCommands still shows 5 and the OnCustomCommand method doesn't get hit on shutdown :-{
>>Maybe I'm missing something about how this is supposed to work .......
>
>Yes, that is correct. This is what it does by default. But, it was good to have tried to manually override its behavior. I am starting to wonder if the fact that there is a mention that this does not apply to Windows Server 2003 might be the same for Windows 7. As for me, I haven't had time to request new server infrastructure to be able to test that on Windows Server 2008.
Well SERVICE_ACCEPT_PRESHUTDOWN was introduced in Vista. Where did you read that it wasn't part of WS2003 ? IAC, I'm sure they wouldn't have removed it for WIN7. I'm just missing something :-{
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only