The tracing being used in my case (not the same as MSDN example) was overwriting the last error value.
The actual last error is now found to be 5 (ERROR_ACCESS_DENIED).
This makes sense.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.