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.

34 lines
823 B

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: main.cpp
  4. //
  5. // Module: CMPBK32.DLL
  6. //
  7. // Synopsis: Implementation of DllMain for cmpbk32.dll.
  8. //
  9. // Copyright (c) 1998 Microsoft Corporation
  10. //
  11. // Author: quintinb created header 08/17/99
  12. //
  13. //+----------------------------------------------------------------------------
  14. #include "cmmaster.h"
  15. extern HINSTANCE g_hInst;
  16. extern "C" BOOL WINAPI DllMain(
  17. HINSTANCE hinstDLL, // handle to DLL module
  18. DWORD fdwReason, // reason for calling function
  19. LPVOID lpvReserved // reserved
  20. )
  21. {
  22. if (fdwReason == DLL_PROCESS_ATTACH)
  23. {
  24. MYDBGASSERT(hinstDLL);
  25. g_hInst = hinstDLL;
  26. MYVERIFY(DisableThreadLibraryCalls(hinstDLL));
  27. }
  28. return TRUE;
  29. }