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.

114 lines
2.3 KiB

  1. //
  2. // System Includes
  3. //
  4. #include "nsu.h"
  5. #include <windows.h>
  6. //
  7. // CRunTime Includes
  8. //
  9. #include <stdlib.h>
  10. #include <limits.h>
  11. #include <io.h>
  12. #include <stdio.h>
  13. #include <wchar.h>
  14. #include <dsgetdc.h>
  15. #include <lm.h>
  16. #define UNICODE
  17. #define COBJMACROS
  18. #include <rpc.h>
  19. #include <winldap.h>
  20. #include <time.h>
  21. #include <ipsec.h>
  22. #include <oakdefs.h>
  23. #include <wbemidl.h>
  24. #include <oleauto.h>
  25. #include <objbase.h>
  26. #include "polstore2.h"
  27. #include "ldaputil.h"
  28. #include "memory.h"
  29. #include "structs.h"
  30. #include "dsstore.h"
  31. #include "regstore.h"
  32. #include "wmistore.h"
  33. #include "persist.h"
  34. #include "persist-w.h"
  35. #include "procrule.h"
  36. #include "utils.h"
  37. #include "policy-d.h"
  38. #include "policy-r.h"
  39. #include "policy-w.h"
  40. #include "filters-d.h"
  41. #include "filters-r.h"
  42. #include "filters-w.h"
  43. #include "negpols-d.h"
  44. #include "negpols-r.h"
  45. #include "negpols-w.h"
  46. #include "rules-d.h"
  47. #include "rules-r.h"
  48. #include "rules-w.h"
  49. #include "refer-d.h"
  50. #include "refer-r.h"
  51. #include "isakmp-d.h"
  52. #include "isakmp-r.h"
  53. #include "isakmp-w.h"
  54. #include "connui.h"
  55. #include "reginit.h"
  56. #include "dllsvr.h"
  57. #include "update-d.h"
  58. #include "update-r.h"
  59. #include "polstmsg.h"
  60. #include "safestr.h"
  61. typedef struct _IPSEC_POLICY_STORE {
  62. DWORD dwProvider;
  63. HKEY hParentRegistryKey;
  64. HKEY hRegistryKey;
  65. LPWSTR pszLocationName;
  66. HLDAP hLdapBindHandle;
  67. LPWSTR pszIpsecRootContainer;
  68. LPWSTR pszFileName;
  69. IWbemServices *pWbemServices;
  70. }IPSEC_POLICY_STORE, *PIPSEC_POLICY_STORE;
  71. #include "import.h"
  72. #include "export.h"
  73. #include "policy-f.h"
  74. #include "filters-f.h"
  75. #include "negpols-f.h"
  76. #include "isakmp-f.h"
  77. #include "rules-f.h"
  78. #include "restore-r.h"
  79. #include "validate.h"
  80. #include "nsuacl.h"
  81. #define POLSTORE_POLICY_PERMISSIONS NSU_ACL_F_AdminFull | NSU_ACL_F_LocalSystemFull
  82. #define REG_VAL_IPSEC_OPERATIONMODE L"OperationMode"
  83. #define REG_VAL_IPSEC_BOOTEXEMPTLIST L"BootExemptList"
  84. #define REG_KEY_IPSEC_DRIVER_SERVICE L"SYSTEM\\CurrentControlSet\\Services\\IPSec"
  85. #define SZAPPNAME L"polstore.dll"
  86. //
  87. // These are declared in API.C
  88. extern LPWSTR gpszRegLocalContainer;
  89. extern LPWSTR gpszRegPersistentContainer;
  90. extern LPWSTR gpszIpsecFileRootContainer;
  91. extern LPWSTR gpszIPsecDirContainer;
  92. extern LPWSTR gpActivePolicyKey;
  93. extern LPWSTR gpDirectoryPolicyPointerKey;