Source code of Windows XP (NT5)
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.

60 lines
747 B

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. init.c
  5. Abstract:
  6. Holds initialization code for winipsec.dll.
  7. Author:
  8. abhisheV 21-September-1999
  9. Environment:
  10. User Level: Win32
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. // This entry point is called on DLL initialization.
  15. // The module handle is needed to load the resources.
  16. BOOL
  17. InitializeDll(
  18. IN PVOID hmod,
  19. IN DWORD dwReason,
  20. IN PCONTEXT pctx OPTIONAL
  21. )
  22. {
  23. DBG_UNREFERENCED_PARAMETER(pctx);
  24. switch (dwReason) {
  25. case DLL_PROCESS_ATTACH:
  26. DisableThreadLibraryCalls((HMODULE) hmod);
  27. ghInstance = hmod;
  28. break;
  29. case DLL_PROCESS_DETACH:
  30. break;
  31. }
  32. return TRUE;
  33. }