API Reference
Class
Privilege (ADPlayground)
Enables process privileges via Win32 APIs.
Inheritance
- Object
- Privilege
Methods
Enable 2 overloads
Enable(System.String privilege, System.Int32@ errorCode) #Attempts to enable the specified privilege for the current process.
Parameters
- privilege System.String
- Privilege name, for example SeBackupPrivilege.
- errorCode System.Int32@
- Win32 error code on failure.
Returns
true when the privilege is enabled.
Enable(System.String privilege) #Attempts to enable the specified privilege for the current process.
Parameters
- privilege System.String
- Privilege name, for example SeBackupPrivilege.
Returns
true when the privilege is enabled.