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.

170 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. precomp.h
  5. Abstract:
  6. Precompiled header for wifipol.dll.
  7. Author:
  8. abhisheV 21-September-1999
  9. taroonm 11/21/01
  10. Environment:
  11. User Level: Win32
  12. Revision History:
  13. --*/
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #include <nt.h>
  18. #include <ntrtl.h>
  19. #include <nturtl.h>
  20. #include <stddef.h>
  21. #include <ntddrdr.h>
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #include <stdio.h>
  26. #include <stdlib.h>
  27. #include <string.h>
  28. #include <rpc.h>
  29. #include <windows.h>
  30. #include <imagehlp.h>
  31. #include <tchar.h>
  32. #include <conio.h>
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. #include <dsgetdc.h>
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #include "winioctl.h"
  41. #include "winsock2.h"
  42. #include "winsock.h"
  43. #include <userenv.h>
  44. #include <wchar.h>
  45. #include <winldap.h>
  46. #include "ipexport.h"
  47. #include <iphlpapi.h>
  48. #include <nhapi.h>
  49. #include <seopaque.h>
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53. #include <msaudite.h>
  54. #include <ntlsa.h>
  55. #include <lsarpc.h>
  56. #include <ntsam.h>
  57. #include <lsaisrv.h>
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #include "utils.h"
  62. #include "memory.h"
  63. #include "security.h"
  64. #include "init.h"
  65. #include "loopmgr.h"
  66. #include "wirelessspd.h"
  67. //
  68. // Policy Agent Store specific headers.
  69. //
  70. //#include "oakdefs.h"
  71. #include "wlstore2.h"
  72. #include "..\..\wastore\ldaputil.h"
  73. #include "..\..\wastore\structs.h"
  74. #include "..\..\wastore\dsstore.h"
  75. #include "..\..\wastore\regstore.h"
  76. #include "..\..\wastore\procrule.h"
  77. #include "..\..\wastore\persist.h"
  78. #include "..\..\wastore\utils.h"
  79. #include "polguids.h"
  80. #include "pastore.h"
  81. #include "externs.h"
  82. #include "policyinput.h"
  83. #include <wzcsapi.h>
  84. #include "wifiext.h"
  85. #include "wifipol.h"
  86. // Florin's Stuff
  87. #include "eapolpol.h"
  88. #include <rtutils.h>
  89. #include "tracing.h"
  90. extern
  91. DWORD
  92. AllocateAndGetIfTableFromStack(
  93. OUT MIB_IFTABLE **ppIfTable,
  94. IN BOOL bOrder,
  95. IN HANDLE hHeap,
  96. IN DWORD dwFlags,
  97. IN BOOL bForceUpdate
  98. );
  99. #ifdef BAIL_ON_WIN32_ERROR
  100. #undef BAIL_ON_WIN32_ERROR
  101. #endif
  102. #ifdef BAIL_ON_LOCK_ERROR
  103. #undef BAIL_ON_LOCK_ERROR
  104. #endif
  105. #define BAIL_ON_WIN32_ERROR(dwError) \
  106. if (dwError) { \
  107. goto error; \
  108. }
  109. #define BAIL_ON_LOCK_ERROR(dwError) \
  110. if (dwError) { \
  111. goto lock; \
  112. }
  113. #define BAIL_ON_WIN32_SUCCESS(dwError) \
  114. if (!dwError) { \
  115. goto success; \
  116. }
  117. #define BAIL_ON_LOCK_SUCCESS(dwError) \
  118. if (!dwError) { \
  119. goto lock_success; \
  120. }
  121. #define ENTER_SPD_SECTION() \
  122. EnterCriticalSection(&gcSPDSection) \
  123. #define LEAVE_SPD_SECTION() \
  124. LeaveCriticalSection(&gcSPDSection) \