RegisterEventSource returns NULL, error code is zero
Sometimes, when I call RegisterEventSource()
, it returns NULL. GetLastError()
returns 0.
The event log is on a remote computer in the same domain and the user is a domain administrator. It happens several times in a row on different machines (but with the log on the same machine) and then stops.
Why might this happen?
All computers are running Windows Server 2008. I am using C ++.
+2
source to share