Files
metasploit-gs/external/source/byakugan/detours/detoured.cpp
T
HD Moore 8dc54f35d3 Merging from the byakugan branch
git-svn-id: file:///home/svn/framework3/trunk@5633 4d416f70-5f16-0410-b530-b9f4589650da
2008-08-20 19:27:03 +00:00

33 lines
736 B
C++
Executable File

//////////////////////////////////////////////////////////////////////////////
//
// Presence of this DLL (detoured.dll) marks a process as detoured.
//
// Microsoft Research Detours Package, Version 2.1.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
#include <windows.h>
#include "detoured.h"
static HMODULE s_hDll;
HMODULE WINAPI Detoured()
{
return s_hDll;
}
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID reserved)
{
(void)reserved;
if (dwReason == DLL_PROCESS_ATTACH) {
s_hDll = hinst;
DisableThreadLibraryCalls(hinst);
}
return TRUE;
}
//
///////////////////////////////////////////////////////////////// End of File.