I have a C++ program running as a Windows service. When my service is running under localsystem account, it works fine. However, when I run it from a command line (for debugging purposes), which means it runs under my domain account, and my domain account is a member of the Administrator group, it failed with the error
error 1314: A required privilege is not held by the client.
Tracing the could, I could see that it fails at the call to the CreateProcessAsUser(), which is one of the Microsoft provided system function.
Can someone give me some lights on this problem? And how do I give my domain account the same privilege as the localsystem account has?