fixed kernel handle bit

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@3279 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
wj32
2010-07-06 09:39:49 +00:00
parent eb6ad61269
commit 2fb6d7e93e
2 changed files with 7 additions and 1 deletions
Binary file not shown.
+7 -1
View File
@@ -50,7 +50,13 @@
#define MAX_ULONG MAX_UINTEGER(BITS_ULONG)
#define SYSTEM_PROCESS_ID ((HANDLE)4)
#define KERNEL_HANDLE_BIT ((ULONG_PTR)1 << (sizeof(HANDLE) * 8 - 1))
#ifdef _X86_
#define KERNEL_HANDLE_BIT (0x80000000)
#else
#define KERNEL_HANDLE_BIT (0xffffffff80000000)
#endif
#define IsKernelHandle(Handle) ((LONG_PTR)(Handle) < 0)
#define MakeKernelHandle(Handle) ((ULONG_PTR)(Handle) |= KERNEL_HANDLE_BIT)