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.

55 lines
752 B

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. init.c
  5. Abstract:
  6. Calls all initialization routines that are used by miglib.lib.
  7. Author:
  8. Jim Schmidt (jimschm) 08-Feb-1999
  9. Revision History:
  10. <alias> <date> <comments>
  11. --*/
  12. #include "pch.h"
  13. HANDLE g_hHeap = NULL;
  14. HINSTANCE g_hInst = NULL;
  15. BOOL
  16. WINAPI
  17. MigUtil_Entry (
  18. HINSTANCE hInstance,
  19. DWORD dwReason,
  20. LPVOID lpReserved
  21. );
  22. VOID
  23. InitializeMigLib (
  24. VOID
  25. )
  26. {
  27. g_hHeap = GetProcessHeap();
  28. g_hInst = GetModuleHandle (NULL);
  29. MigUtil_Entry (g_hInst, DLL_PROCESS_ATTACH, NULL);
  30. }
  31. VOID
  32. TerminateMigLib (
  33. VOID
  34. )
  35. {
  36. MigUtil_Entry (g_hInst, DLL_PROCESS_DETACH, NULL);
  37. }