1 |
william |
88 |
using System; |
2 |
|
|
using System.Collections.Generic; |
3 |
|
|
using System.Text; |
4 |
|
|
|
5 |
|
|
namespace libWin32.Win32.Threading |
6 |
|
|
{ |
7 |
william |
101 |
[Flags()] |
8 |
|
|
public enum ProcessAccessFlags : int |
9 |
william |
88 |
{ |
10 |
william |
101 |
/// <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 |
william |
88 |
} |
31 |
|
|
|
32 |
|
|
} |