Skip to content

Commit

Permalink
[NT:EXTENSION] NtCurrent(Process/Thread)Id return a ULONG value
Browse files Browse the repository at this point in the history
  • Loading branch information
RatinCN committed Nov 10, 2024
1 parent d5ca4c8 commit 210c434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Include/KNSoft/NDK/NT/Extension/Runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ NtSetLastStatus(
#pragma region Current runtime information

#define NtCurrentPeb() ((PPEB)ReadTeb(ProcessEnvironmentBlock))
#define NtCurrentProcessId() ((HANDLE)ReadTeb(ClientId.UniqueProcess))
#define NtCurrentThreadId() ((HANDLE)ReadTeb(ClientId.UniqueThread))
#define NtCurrentProcessId() ((ULONG)(ULONG_PTR)ReadTeb(ClientId.UniqueProcess))
#define NtCurrentThreadId() ((ULONG)(ULONG_PTR)ReadTeb(ClientId.UniqueThread))
#define NtCurrentLogonId() (NtCurrentPeb()->LogonId)
#define NtGetProcessHeap() (NtCurrentPeb()->ProcessHeap)
#define NtGetNtdllBase() (CONTAINING_RECORD(NtCurrentPeb()->Ldr->InInitializationOrderModuleList.Flink, LDR_DATA_TABLE_ENTRY, InInitializationOrderLinks)->DllBase)
Expand Down

0 comments on commit 210c434

Please sign in to comment.