https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1a93d83f925f700c4a436…
commit 1a93d83f925f700c4a436edca476def1937fd843
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Dec 30 22:47:36 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Mon Dec 31 11:19:35 2018 +0100
[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 8b0099823b..8045dfba70 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 fabf9e2324..b59dee4c96 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