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:
wj32
2009-09-24 09:17:25 +00:00
parent 03e73aada6
commit db9a5ce312
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -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,
+1 -1
View File
@@ -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",