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.

155 lines
2.6 KiB

  1. #define POLL_STATE_INITIAL 0
  2. #define POLL_STATE_DS_DOWNLOADED 1
  3. #define POLL_STATE_LOCAL_DOWNLOADED 2
  4. #define POLL_STATE_CACHE_DOWNLOADED 3
  5. typedef struct _WIRELESS_POLICY_STATE {
  6. DWORD dwCurrentState;
  7. union {
  8. LPWSTR pszDirectoryPolicyDN;
  9. LPWSTR pszCachePolicyDN;
  10. };
  11. DWORD CurrentPollingInterval;
  12. DWORD DefaultPollingInterval;
  13. DWORD DSIncarnationNumber;
  14. DWORD RegIncarnationNumber;
  15. PWIRELESS_POLICY_OBJECT pWirelessPolicyObject;
  16. PWIRELESS_POLICY_DATA pWirelessPolicyData;
  17. } WIRELESS_POLICY_STATE, * PWIRELESS_POLICY_STATE;
  18. VOID
  19. InitializePolicyStateBlock(
  20. PWIRELESS_POLICY_STATE pWirelessPolicyState
  21. );
  22. DWORD
  23. StartStatePollingManager(
  24. PWIRELESS_POLICY_STATE pWirelessPolicyState
  25. );
  26. DWORD
  27. PlumbDirectoryPolicy(
  28. PWIRELESS_POLICY_STATE pWirelessPolicyState
  29. );
  30. DWORD
  31. GetDirectoryPolicyDN(
  32. LPWSTR * ppszDirectoryPolicyDN
  33. );
  34. DWORD
  35. CheckDeleteOldPolicy(
  36. DWORD * dwDelete
  37. );
  38. DWORD
  39. LoadDirectoryPolicy(
  40. LPWSTR pszDirectoryPolicyDN,
  41. PWIRELESS_POLICY_OBJECT * ppWirelessPolicyObject
  42. );
  43. DWORD
  44. PlumbCachePolicy(
  45. PWIRELESS_POLICY_STATE pWirelessPolicyState
  46. );
  47. DWORD
  48. GetCachePolicyDN(
  49. LPWSTR * ppszCachePolicyDN
  50. );
  51. DWORD
  52. LoadCachePolicy(
  53. LPWSTR pszCachePolicyDN,
  54. PWIRELESS_POLICY_OBJECT * ppWirelessPolicyObject
  55. );
  56. DWORD
  57. AddPolicyInformation(
  58. PWIRELESS_POLICY_DATA pWirelessPolicyData
  59. );
  60. DWORD
  61. AddWZCPolicy(
  62. PWIRELESS_POLICY_DATA pWirelessPolicyData
  63. );
  64. DWORD
  65. AddEapolPolicy(
  66. PWIRELESS_POLICY_DATA pWirelessPolicyData
  67. );
  68. DWORD
  69. OnPolicyChanged(
  70. PWIRELESS_POLICY_STATE pWirelessPolicyState
  71. );
  72. DWORD
  73. OnPolicyChangedEx(
  74. PWIRELESS_POLICY_STATE pWirelessPolicyState
  75. );
  76. DWORD
  77. DeletePolicyInformation(
  78. PWIRELESS_POLICY_DATA pWirelessPolicyData
  79. );
  80. VOID
  81. ClearPolicyStateBlock(
  82. PWIRELESS_POLICY_STATE pWirelessPolicyState
  83. );
  84. DWORD
  85. OnPolicyPoll(
  86. PWIRELESS_POLICY_STATE pWirelessPolicyState
  87. );
  88. DWORD
  89. ProcessDirectoryPolicyPollState(
  90. PWIRELESS_POLICY_STATE pWirelessPolicyState
  91. );
  92. DWORD
  93. GetDirectoryIncarnationNumber(
  94. LPWSTR pszWirelessPolicyDN,
  95. DWORD * pdwIncarnationNumber
  96. );
  97. DWORD
  98. MigrateFromDSToCache(
  99. PWIRELESS_POLICY_STATE pWirelessPolicyState
  100. );
  101. DWORD
  102. ProcessCachePolicyPollState(
  103. PWIRELESS_POLICY_STATE pWirelessPolicyState
  104. );
  105. DWORD
  106. MigrateFromCacheToDS(
  107. PWIRELESS_POLICY_STATE pWirelessPolicyState
  108. );
  109. DWORD
  110. UpdateFromCacheToDS(
  111. PWIRELESS_POLICY_STATE pWirelessPolicyState
  112. );
  113. DWORD
  114. UpdatePolicyInformation(
  115. PWIRELESS_POLICY_DATA pOldWirelessPolicyData,
  116. PWIRELESS_POLICY_DATA pNewWirelessPolicyData
  117. );