My Vista application needs to know whether the user has launched it ‘as administrator’ (elevated) or as a standard user (non-elevated). How can I detect that at run time?
My Vista application needs to know whether the user has launched it as administrator
Share
The following C++ function can do that: