Andrey Turkin : ntdll: Add stub for NtSetInformationThread( ThreadHideFromDebugger).

Alexandre Julliard julliard at winehq.org
Tue Oct 6 10:35:51 CDT 2009


Module: wine
Branch: master
Commit: be910d973a432495a8372476f3c9a5547feb8602
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=be910d973a432495a8372476f3c9a5547feb8602

Author: Andrey Turkin <andrey.turkin at gmail.com>
Date:   Tue Oct  6 13:34:48 2009 +0400

ntdll: Add stub for NtSetInformationThread(ThreadHideFromDebugger).

---

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

diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index dab1c1d..30a299d 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -1227,6 +1227,10 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
             SERVER_END_REQ;
         }
         return status;
+    case ThreadHideFromDebugger:
+        /* pretend the call succeeded to satisfy some code protectors */
+        return STATUS_SUCCESS;
+
     case ThreadBasicInformation:
     case ThreadTimes:
     case ThreadPriority:
diff --git a/include/winternl.h b/include/winternl.h
index d35adea..a6fea7d 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -760,6 +760,7 @@ typedef enum _THREADINFOCLASS {
     ThreadPriorityBoost,
     ThreadSetTlsArrayAddress,
     ThreadIsIoPending,
+    ThreadHideFromDebugger,
     MaxThreadInfoClass
 } THREADINFOCLASS;
 




More information about the wine-cvs mailing list