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.

55 lines
684 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 <windows.h>
  13. HANDLE g_hHeap;
  14. HANDLE g_hInst;
  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. }