Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
760 B

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: MAIN.CPP
  4. //
  5. // Module: CMROUTE.DLL
  6. //
  7. // Synopsis: Start of CMROUTE.DLL
  8. //
  9. // Copyright (c) 1999 Microsoft Corporation
  10. //
  11. // Author: anbrad created 02/24/99
  12. //
  13. //+----------------------------------------------------------------------------
  14. #include "pch.h"
  15. #include "cmdebug.h"
  16. extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
  17. {
  18. if (DLL_PROCESS_ATTACH == fdwReason)
  19. {
  20. MYVERIFY(DisableThreadLibraryCalls(hinstDLL));
  21. }
  22. // NOTE: Do we need to disable double loading? We aren't using Thread local
  23. // storage, just static variables.
  24. return TRUE;
  25. }