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.

50 lines
603 B

  1. /*++
  2. Copyright (c) 1990-2000 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. init.c
  6. Abstract:
  7. Holds initialization code for polstore.dll
  8. Author:
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #include "precomp.h"
  14. HANDLE hInst;
  15. BOOL
  16. InitializeDll(
  17. IN PVOID hmod,
  18. IN DWORD Reason,
  19. IN PCONTEXT pctx OPTIONAL)
  20. {
  21. DBG_UNREFERENCED_PARAMETER(pctx);
  22. switch (Reason) {
  23. case DLL_PROCESS_ATTACH:
  24. DisableThreadLibraryCalls((HMODULE)hmod);
  25. hInst = hmod;
  26. break;
  27. case DLL_PROCESS_DETACH:
  28. break;
  29. }
  30. return TRUE;
  31. }