4 |
|
|
5 |
|
namespace libWin32.Win32.Threading |
6 |
|
{ |
7 |
< |
[Flags] |
8 |
< |
public enum ThreadAccess : int |
7 |
> |
[Flags()] |
8 |
> |
public enum ProcessAccessFlags : int |
9 |
|
{ |
10 |
< |
PROCESS_TOKEN_QUERY = (0x0008), |
11 |
< |
TERMINATE = (0x0001), |
12 |
< |
SUSPEND_RESUME = (0x0002), |
13 |
< |
GET_CONTEXT = (0x0008), |
14 |
< |
SET_CONTEXT = (0x0010), |
15 |
< |
SET_INFORMATION = (0x0020), |
16 |
< |
QUERY_INFORMATION = (0x0040), |
17 |
< |
SET_THREAD_TOKEN = (0x0080), |
18 |
< |
IMPERSONATE = (0x0100), |
19 |
< |
DIRECT_IMPERSONATION = (0x0200) |
10 |
> |
/// <summary>Specifies all possible access flags for the process object.</summary> |
11 |
> |
AllAccess = CreateThread | DuplicateHandle | QueryInformation | SetInformation | Terminate | VMOperation | VMRead | VMWrite | Synchronize, |
12 |
> |
/// <summary>Enables usage of the process handle in the CreateRemoteThread function to create a thread in the process.</summary> |
13 |
> |
CreateThread = 0x2, |
14 |
> |
/// <summary>Enables usage of the process handle as either the source or target process in the DuplicateHandle function to duplicate a handle.</summary> |
15 |
> |
DuplicateHandle = 0x40, |
16 |
> |
/// <summary>Enables usage of the process handle in the GetExitCodeProcess and GetPriorityClass functions to read information from the process object.</summary> |
17 |
> |
QueryInformation = 0x400, |
18 |
> |
/// <summary>Enables usage of the process handle in the SetPriorityClass function to set the priority class of the process.</summary> |
19 |
> |
SetInformation = 0x200, |
20 |
> |
/// <summary>Enables usage of the process handle in the TerminateProcess function to terminate the process.</summary> |
21 |
> |
Terminate = 0x1, |
22 |
> |
/// <summary>Enables usage of the process handle in the VirtualProtectEx and WriteProcessMemory functions to modify the virtual memory of the process.</summary> |
23 |
> |
VMOperation = 0x8, |
24 |
> |
/// <summary>Enables usage of the process handle in the ReadProcessMemory function to' read from the virtual memory of the process.</summary> |
25 |
> |
VMRead = 0x10, |
26 |
> |
/// <summary>Enables usage of the process handle in the WriteProcessMemory function to write to the virtual memory of the process.</summary> |
27 |
> |
VMWrite = 0x20, |
28 |
> |
/// <summary>Enables usage of the process handle in any of the wait functions to wait for the process to terminate.</summary> |
29 |
> |
Synchronize = 0x100000 |
30 |
|
} |
31 |
|
|
32 |
|
} |