I call RegisterEventSource() function during my service stop. But it is returning null during system shutdown. Is there any reason for this behavior?
Error: I get error code 0x800706b5 on GetLastError() When googled, I came to know that it has something to do with missing registry data.
Also, how to check if system shutdown has started? (i.e equivalent to HasShutdownStarted() in C#)