| 1234567891011121314151617181920212223242526272829303132 |
- //////////////////////////////////////////////////////////////////////////////
- //
- // 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.
|