Re: [GD-General] Is it possible to detect debugging?
Brought to you by:
vexxed72
From: brian s. <pud...@po...> - 2003-10-09 18:10:50
|
I'm guessing that you're going through these hoops because IsDebuggerPresent isn't available in Win95? Surely this can't really prevent Someone Evil from having their way with your app. *Seems to me I could easily use http://research.microsoft.com/sn/detours/ to hook your call to GetProcAddress. --brian * Daniel Vogel wrote: >UBOOL appIsDebuggerPresent() >{ > UBOOL Result = 0; > OSVERSIONINFO WinVersion; > > HINSTANCE KernLib = LoadLibraryEx( TEXT("kernel32.dll"), NULL, 0); > if( KernLib ) > { > FARPROC lIsDebuggerPresent = GetProcAddress( KernLib, >"IsDebuggerPresent" ); > if( lIsDebuggerPresent && lIsDebuggerPresent() ) > Result = 1; > > FreeLibrary( KernLib ); > } > return Result; >} > >-- Daniel, Epic Games Inc. > > |