Inheritance: Microsoft.Win32.SafeHandles.CriticalHandleZeroOrMinusOneIsInvalid
Example #1
0
        public virtual bool BeginAccess()
        {
            if (m_Open)
                return false;

            m_Process = NativeMethods.OpenProcess(ProcessAllAccess, 0, ProcessID);
            m_Open = true;

            return true;
        }
Example #2
0
        public virtual bool BeginAccess()
        {
            if (m_Open)
            {
                return(false);
            }

            m_Process = NativeMethods.OpenProcess(ProcessAllAccess, 0, ProcessID);
            m_Open    = true;

            return(true);
        }
 public static unsafe extern int WriteProcessMemory(ClientProcessHandle process, int baseAddress, void *buffer, int size, int nullMe);
 public static unsafe extern int ReadProcessMemory(ClientProcessHandle process, int baseAddress, void *buffer, int size, ref int op);
 public static extern int CloseHandle(ClientProcessHandle handle);
 public static extern ClientProcessHandle OpenProcess(int desiredAccess, int inheritClientHandle, ClientProcessHandle processID);
 public static extern int GetWindowThreadProcessId(ClientWindowHandle window, ref ClientProcessHandle processID);
Example #8
0
		public static extern unsafe int WriteProcessMemory(
			ClientProcessHandle process, int baseAddress, void* buffer, int size, int nullMe);
Example #9
0
		public static extern unsafe int ReadProcessMemory(
			ClientProcessHandle process, int baseAddress, void* buffer, int size, ref int op);
Example #10
0
		public static extern int CloseHandle(ClientProcessHandle handle);
Example #11
0
		public static extern ClientProcessHandle OpenProcess(
			int desiredAccess, int inheritClientHandle, ClientProcessHandle processID);
Example #12
0
		public static extern int GetWindowThreadProcessId(ClientWindowHandle window, ref ClientProcessHandle processID);
		public WindowProcessStream( ClientWindowHandle window )
		{
			m_Window = window;
			m_ProcessID = ClientProcessHandle.Invalid;
		}
Example #14
0
 public WindowProcessStream(ClientWindowHandle window)
 {
     m_Window    = window;
     m_ProcessID = ClientProcessHandle.Invalid;
 }