detoured.cpp 352 B

1234567891011121314151617
  1. #include <windows.h>
  2. #include "detoured.h"
  3. static HMODULE s_hDll;
  4. HMODULE WINAPI Detoured()
  5. {
  6. return s_hDll;
  7. }
  8. //BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID reserved)
  9. //{
  10. // (void)reserved;
  11. // if (dwReason == DLL_PROCESS_ATTACH)
  12. // {
  13. // s_hDll = hinst;
  14. // DisableThreadLibraryCalls(hinst);
  15. // }
  16. // return TRUE;
  17. //}