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.

134 lines
1.7 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. MIG_OPERATIONID g_IniAutoFilterOp;
  43. //
  44. // Macro expansion list
  45. //
  46. // None
  47. //
  48. // Private function prototypes
  49. //
  50. // None
  51. //
  52. // Macro expansion definition
  53. //
  54. // None
  55. //
  56. // Code
  57. //
  58. EXPORT
  59. BOOL
  60. WINAPI
  61. ModuleInitialize (
  62. VOID
  63. )
  64. {
  65. UtInitialize (NULL);
  66. RegInitialize (); // for user profile code
  67. FileEnumInitialize ();
  68. InfGlobalInit (FALSE);
  69. InitAppModule ();
  70. CertificatesInitialize ();
  71. return TRUE;
  72. }
  73. EXPORT
  74. VOID
  75. WINAPI
  76. ModuleTerminate (
  77. VOID
  78. )
  79. {
  80. if (g_RevEnvMap) {
  81. DestroyStringMapping (g_RevEnvMap);
  82. }
  83. if (g_EnvMap) {
  84. DestroyStringMapping (g_EnvMap);
  85. }
  86. if (g_UndefMap) {
  87. DestroyStringMapping (g_UndefMap);
  88. }
  89. if (g_V1Pool) {
  90. PmDestroyPool (g_V1Pool);
  91. }
  92. CertificatesTerminate ();
  93. TerminateAppModule ();
  94. InfGlobalInit (TRUE);
  95. FileEnumTerminate ();
  96. RegTerminate ();
  97. // UtTerminate must be last
  98. UtTerminate ();
  99. }