From 1a93d83f925f700c4a436edca476def1937fd843 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 30 Dec 2018 22:47:36 +0100 Subject: [PATCH] [SDK] Add PsGetCurrentThreadTeb() to the DDK --- ntoskrnl/ps/thread.c | 2 +- sdk/include/xdk/psfuncs.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ntoskrnl/ps/thread.c b/ntoskrnl/ps/thread.c index 8b0099823bf..8045dfba70b 100644 --- a/ntoskrnl/ps/thread.c +++ b/ntoskrnl/ps/thread.c @@ -780,7 +780,7 @@ PsGetThreadTeb(IN PETHREAD Thread) /* * @implemented */ -PTEB +PVOID NTAPI PsGetCurrentThreadTeb(VOID) { diff --git a/sdk/include/xdk/psfuncs.h b/sdk/include/xdk/psfuncs.h index fabf9e23243..b59dee4c96d 100644 --- a/sdk/include/xdk/psfuncs.h +++ b/sdk/include/xdk/psfuncs.h @@ -327,6 +327,14 @@ PsGetThreadProcessId( IN PETHREAD Thread); #endif /* (NTDDI_VERSION >= NTDDI_WS03) */ +#if (NTDDI_VERSION >= NTDDI_WS03SP1) +NTKERNELAPI +PVOID +NTAPI +PsGetCurrentThreadTeb( + VOID); +#endif /* (NTDDI_VERSION >= NTDDI_WS03SP1) */ + #if (NTDDI_VERSION >= NTDDI_VISTA) NTKERNELAPI