diff --git a/trunk/ProcessHacker.Native/Api/Functions.cs b/trunk/ProcessHacker.Native/Api/Functions.cs index 563e6f7b9..1520ebdc9 100644 --- a/trunk/ProcessHacker.Native/Api/Functions.cs +++ b/trunk/ProcessHacker.Native/Api/Functions.cs @@ -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, diff --git a/trunk/ProcessHacker/Components/ThreadList.cs b/trunk/ProcessHacker/Components/ThreadList.cs index 33e631ec7..d5144b9b1 100644 --- a/trunk/ProcessHacker/Components/ThreadList.cs +++ b/trunk/ProcessHacker/Components/ThreadList.cs @@ -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",