/[RomCheater]/trunk/Win32/libWin32/Win32/Threading/ProcessAccessFlags.cs
ViewVC logotype

Diff of /trunk/Win32/libWin32/Win32/Threading/ProcessAccessFlags.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/Win32/libWin32/Win32/Threading/ThreadAccess.cs	2012/05/09 21:00:02	89
+++ trunk/Win32/libWin32/Win32/Threading/ProcessAccessFlags.cs	2012/05/10 09:53:16	101
@@ -4,19 +4,29 @@
 
 namespace libWin32.Win32.Threading
 {
-    [Flags]
-    public enum ThreadAccess : int
+    [Flags()]
+    public enum ProcessAccessFlags : int
     {
-        PROCESS_TOKEN_QUERY = (0x0008),
-        TERMINATE = (0x0001),
-        SUSPEND_RESUME = (0x0002),
-        GET_CONTEXT = (0x0008),
-        SET_CONTEXT = (0x0010),
-        SET_INFORMATION = (0x0020),
-        QUERY_INFORMATION = (0x0040),
-        SET_THREAD_TOKEN = (0x0080),
-        IMPERSONATE = (0x0100),
-        DIRECT_IMPERSONATION = (0x0200)
+        /// <summary>Specifies all possible access flags for the process object.</summary>
+        AllAccess = CreateThread | DuplicateHandle | QueryInformation | SetInformation | Terminate | VMOperation | VMRead | VMWrite | Synchronize,
+        /// <summary>Enables usage of the process handle in the CreateRemoteThread function to create a thread in the process.</summary>
+        CreateThread = 0x2,
+        /// <summary>Enables usage of the process handle as either the source or target process in the DuplicateHandle function to duplicate a handle.</summary>
+        DuplicateHandle = 0x40,
+        /// <summary>Enables usage of the process handle in the GetExitCodeProcess and GetPriorityClass functions to read information from the process object.</summary>
+        QueryInformation = 0x400,
+        /// <summary>Enables usage of the process handle in the SetPriorityClass function to set the priority class of the process.</summary>
+        SetInformation = 0x200,
+        /// <summary>Enables usage of the process handle in the TerminateProcess function to terminate the process.</summary>
+        Terminate = 0x1,
+        /// <summary>Enables usage of the process handle in the VirtualProtectEx and WriteProcessMemory functions to modify the virtual memory of the process.</summary>
+        VMOperation = 0x8,
+        /// <summary>Enables usage of the process handle in the ReadProcessMemory function to' read from the virtual memory of the process.</summary>
+        VMRead = 0x10,
+        /// <summary>Enables usage of the process handle in the WriteProcessMemory function to write to the virtual memory of the process.</summary>
+        VMWrite = 0x20,
+        /// <summary>Enables usage of the process handle in any of the wait functions to wait for the process to terminate.</summary>
+        Synchronize = 0x100000
     }
 
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22