mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
removed GetCurrentProcess, fixed CreateThread return value
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1935 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -868,9 +868,6 @@ namespace ProcessHacker.Native.Api
|
||||
[In] IntPtr ProcessHandle
|
||||
);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
public static extern int GetCurrentProcess();
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
public static extern int GetCurrentProcessId();
|
||||
|
||||
@@ -1928,7 +1925,7 @@ namespace ProcessHacker.Native.Api
|
||||
public static extern int GetThreadPriority([In] IntPtr ThreadHandle);
|
||||
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
public static extern int CreateThread(
|
||||
public static extern IntPtr CreateThread(
|
||||
[In] [Optional] IntPtr ThreadAttributes,
|
||||
[In] int StackSize,
|
||||
[In] [MarshalAs(UnmanagedType.FunctionPtr)] ThreadStart StartAddress,
|
||||
|
||||
@@ -601,7 +601,7 @@ namespace ProcessHacker.Components
|
||||
}
|
||||
|
||||
// Suspending PH threads is not a good idea :(
|
||||
if (_pid == Win32.GetCurrentProcessId())
|
||||
if (_pid == ProcessHandle.GetCurrentId())
|
||||
{
|
||||
if (!PhUtils.ShowConfirmMessage(
|
||||
"inspect",
|
||||
|
||||
Reference in New Issue
Block a user