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.

42 lines
810 B

  1. //----------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2001.
  5. //
  6. // File: init.c
  7. //
  8. // Contents: Holds initialization code for wlstore.dll
  9. //
  10. //
  11. // History: TaroonM
  12. // 10/30/01
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "precomp.h"
  16. HANDLE hInst;
  17. BOOL
  18. InitializeDll(
  19. IN PVOID hmod,
  20. IN DWORD Reason,
  21. IN PCONTEXT pctx OPTIONAL)
  22. {
  23. DBG_UNREFERENCED_PARAMETER(pctx);
  24. switch (Reason) {
  25. case DLL_PROCESS_ATTACH:
  26. DisableThreadLibraryCalls((HMODULE)hmod);
  27. hInst = hmod;
  28. break;
  29. case DLL_PROCESS_DETACH:
  30. break;
  31. }
  32. return TRUE;
  33. }