/// <summary> /// Open process for external manipulation. /// </summary> /// <param name="dwProcessId">Process ID of external process to be opened.</param> /// <param name="dwAccessRights">Required access to external process.</param> /// <returns>Returns IntPtr.Zero on failure, non-zero on success.</returns> public static IntPtr OpenProcess(int dwProcessId, uint dwAccessRights) { return(Imports.OpenProcess(dwAccessRights, false, dwProcessId)); }