-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPriv.h
36 lines (27 loc) · 756 Bytes
/
Priv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <windows.h>
class CEnablePriv
{
public: // Public (externally accessible) interfaces
//
// Set the current process priority to the highest (real-time)
//
BOOL SetRealTimePriority();
//
// Elevate current process privileges ("SeShutdownPrivilege" shutdown privilege)
//
BOOL EnableShutdownPriv();
//
// Elevate current process privileges ("SeDebugPrivilege" read and write control privilege)
//
BOOL EnableDebugPriv();
//
// Elevate current process privileges ("SeBackupPrivilege" registry backup privilege)
//
BOOL EnableBackupPriv();
//
// Elevate current process privileges ("SeRestorePrivilege" restore data privilege)
//
BOOL EnableRestorePriv();
private: // Private (internally used) interfaces
};