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.

110 lines
2.3 KiB

  1. /********************************************************************/
  2. /** Copyright(c) 1995 Microsoft Corporation. **/
  3. /********************************************************************/
  4. //***
  5. //
  6. // Filename: ntauth.h
  7. //
  8. // Description:
  9. //
  10. // History: Feb 11,1997 NarenG Created original version.
  11. //
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifdef ALLOCATE_GLOBALS
  16. #define EXTERN
  17. #else
  18. #define EXTERN extern
  19. #endif
  20. #include <iaspolcy.h>
  21. #include <iasext.h>
  22. typedef enum
  23. {
  24. RAS_IAS_START_ACCOUNTING,
  25. RAS_IAS_STOP_ACCOUNTING,
  26. RAS_IAS_INTERIM_ACCOUNTING,
  27. RAS_IAS_ACCOUNTING_ON,
  28. RAS_IAS_ACCOUNTING_OFF,
  29. RAS_IAS_ACCESS_REQUEST
  30. } RAS_IAS_REQUEST_TYPE;
  31. EXTERN
  32. DWORD g_dwTraceIdNt
  33. #ifdef GLOBALS
  34. = INVALID_TRACEID;
  35. #endif
  36. ;
  37. EXTERN
  38. BOOL g_fInitialized
  39. #ifdef GLOBALS
  40. = FALSE;
  41. #endif
  42. ;
  43. EXTERN
  44. RAS_AUTH_ATTRIBUTE *
  45. g_pServerAttributes
  46. #ifdef GLOBALS
  47. = NULL
  48. #endif
  49. ;
  50. EXTERN
  51. DWORD *
  52. g_hEventLog
  53. #ifdef GLOBALS
  54. = NULL
  55. #endif
  56. ;
  57. EXTERN
  58. HANDLE
  59. g_hInstance
  60. #ifdef GLOBALS
  61. = NULL
  62. #endif
  63. ;
  64. EXTERN
  65. DWORD
  66. g_LoggingLevel
  67. #ifdef GLOBALS
  68. = 0
  69. #endif
  70. ;
  71. #define MaxCharsUnauthUser_c 100
  72. EXTERN CHAR g_aszUnauthenticatedUser[MaxCharsUnauthUser_c+1];
  73. #define TRACE_NTAUTH (0x00010000|TRACE_USE_MASK|TRACE_USE_MSEC)
  74. #define TRACE(a) TracePrintfExA(g_dwTraceIdNt,TRACE_NTAUTH,a )
  75. #define TRACE1(a,b) TracePrintfExA(g_dwTraceIdNt,TRACE_NTAUTH,a,b )
  76. #define TRACE2(a,b,c) TracePrintfExA(g_dwTraceIdNt,TRACE_NTAUTH,a,b,c )
  77. #define TRACE3(a,b,c,d) TracePrintfExA(g_dwTraceIdNt,TRACE_NTAUTH,a,b,c,d )
  78. #define TRACE4(a,b,c,d,e) TracePrintfExA(g_dwTraceIdNt,TRACE_NTAUTH,a,b,c,d,e)
  79. #define NtAuthLogWarning( LogId, NumStrings, lpwsSubStringArray ) \
  80. if ( g_LoggingLevel > 1 ) { \
  81. RouterLogWarningW( g_hEventLog, LogId, \
  82. NumStrings, lpwsSubStringArray, 0 ); }
  83. DWORD
  84. IASSendReceiveAttributes(
  85. IN RAS_IAS_REQUEST_TYPE RequestType,
  86. IN RAS_AUTH_ATTRIBUTE * pInAttributes,
  87. OUT PRAS_AUTH_ATTRIBUTE * ppOutAttributes,
  88. OUT DWORD * lpdwResultCode
  89. );
  90. #ifdef __cplusplus
  91. }
  92. #endif