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.

131 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. v1.c
  5. Abstract:
  6. Implements a module to meet the functionality of the version 1
  7. state save/apply tool.
  8. Author:
  9. Jim Schmidt (jimschm) 12-Mar-2000
  10. Revision History:
  11. <alias> <date> <comments>
  12. --*/
  13. //
  14. // Includes
  15. //
  16. #include "pch.h"
  17. #include "v1p.h"
  18. #define DBG_V1 "v1"
  19. //
  20. // Strings
  21. //
  22. // None
  23. //
  24. // Constants
  25. //
  26. // None
  27. //
  28. // Macros
  29. //
  30. // None
  31. //
  32. // Types
  33. //
  34. // None
  35. //
  36. // Globals
  37. //
  38. MIG_OPERATIONID g_DefaultIconOp;
  39. MIG_PROPERTYID g_DefaultIconData;
  40. MIG_PROPERTYID g_FileCollPatternData;
  41. MIG_OPERATIONID g_RegAutoFilterOp;
  42. //
  43. // Macro expansion list
  44. //
  45. // None
  46. //
  47. // Private function prototypes
  48. //
  49. // None
  50. //
  51. // Macro expansion definition
  52. //
  53. // None
  54. //
  55. // Code
  56. //
  57. EXPORT
  58. BOOL
  59. WINAPI
  60. ModuleInitialize (
  61. VOID
  62. )
  63. {
  64. UtInitialize (NULL);
  65. RegInitialize (); // for user profile code
  66. FileEnumInitialize ();
  67. InfGlobalInit (FALSE);
  68. InitAppModule ();
  69. return TRUE;
  70. }
  71. EXPORT
  72. VOID
  73. WINAPI
  74. ModuleTerminate (
  75. VOID
  76. )
  77. {
  78. if (g_RevEnvMap) {
  79. DestroyStringMapping (g_RevEnvMap);
  80. }
  81. if (g_EnvMap) {
  82. DestroyStringMapping (g_EnvMap);
  83. }
  84. if (g_UndefMap) {
  85. DestroyStringMapping (g_UndefMap);
  86. }
  87. if (g_V1Pool) {
  88. PmDestroyPool (g_V1Pool);
  89. }
  90. TerminateAppModule ();
  91. InfGlobalInit (TRUE);
  92. FileEnumTerminate ();
  93. RegTerminate ();
  94. // UtTerminate must be last
  95. UtTerminate ();
  96. }