ntdll: add support for ThreadHideFromDebugger

Austin English austinenglish at gmail.com
Sun May 17 17:25:18 CDT 2009


Sent for Rob Adams. See bug 12859.

-- 
-Austin
-------------- next part --------------
From 5ff777e5397cc158baf1c112881371edd5544b5b Mon Sep 17 00:00:00 2001
From: Rob Adams <readams at readams.net>
Date: Sun, 17 May 2009 17:23:45 -0500
Subject: [PATCH] ntdll: add support for ThreadHideFromDebugger

---
 dlls/ntdll/thread.c |    6 ++++++
 include/winternl.h  |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index 1a5017e..a9d0c2b 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -1285,6 +1285,12 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
             SERVER_END_REQ;
         }
         return status;
+    case ThreadHideFromDebugger:
+        {
+            /* This API exists for reasons that are known only to Microsoft. */
+            /* Just ignore and be glad of it. */
+        }
+        return status;
     case ThreadBasicInformation:
     case ThreadTimes:
     case ThreadPriority:
diff --git a/include/winternl.h b/include/winternl.h
index b06a10c..31798a2 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -760,6 +760,7 @@ typedef enum _THREADINFOCLASS {
     ThreadPriorityBoost,
     ThreadSetTlsArrayAddress,
     ThreadIsIoPending,
+    ThreadHideFromDebugger,
     MaxThreadInfoClass
 } THREADINFOCLASS;
 
-- 
1.6.0.4


More information about the wine-patches mailing list