Module: wine Branch: master Commit: be910d973a432495a8372476f3c9a5547feb8602 URL: http://source.winehq.org/git/wine.git/?a=commit;h=be910d973a432495a8372476f3...
Author: Andrey Turkin andrey.turkin@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;