Click to Rate and Give Feedback
MSDN
MSDN Library
Security
Running with Special Privileges

Some functions require special privileges to run correctly. In some cases, the function can only be run by certain users or by members of certain groups. The most common requirement is that the user be a local administrator. Other functions require the user's account to have specific privileges enabled.

To reduce the possibility of unauthorized code being able to get control, the system should run with the least privilege necessary. Applications that need to call functions that require special privileges can leave the system open to attack by hackers. Such applications should be designed to run for short periods of time and should inform the user of the security implications involved.

For information about how to run as different users and how to enable privileges in your application, see the following topics:

Running with Administrator Privileges
Asking the User for Credentials
Changing Privileges in a Token

Send comments about this topic to Microsoft

Build date: 7/24/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker