D
Dave G
I have an application on Vista that calls OpenSCManager():
hSCManager = ::OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT);
and is returning access denied.
This happens even if I am logged in as a user in the Administrators group
and run the program set to "Run as Administrator" to elevate privileges.
This code runs without a problem on Windows XP.
Is there some extra privilege I need? What am I missing?
hSCManager = ::OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT);
and is returning access denied.
This happens even if I am logged in as a user in the Administrators group
and run the program set to "Run as Administrator" to elevate privileges.
This code runs without a problem on Windows XP.
Is there some extra privilege I need? What am I missing?