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.

113 lines
2.7 KiB

  1. /********************************************************************/
  2. /** Copyright(c) 1997-1998 Microsoft Corporation. **/
  3. /********************************************************************/
  4. //***
  5. //
  6. // Filename: RASAUTH.H
  7. //
  8. // Description: Contains definitions to allow for third parties to plug in
  9. // back-end authenticaion modules into Remote Access Service.
  10. //
  11. #ifndef _RASAUTH_
  12. #define _RASAUTH_
  13. #include <raseapif.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #if(WINVER >= 0x0500)
  18. //
  19. // Registry definitions used for installation or Accounting and Authenticaion
  20. // providers
  21. #define RAS_AUTHPROVIDER_REGISTRY_LOCATION \
  22. TEXT("SYSTEM\\CurrentControlSet\\Services\\RemoteAccess\\Authentication\\Providers")
  23. #define RAS_ACCTPROVIDER_REGISTRY_LOCATION \
  24. TEXT("SYSTEM\\CurrentControlSet\\Services\\RemoteAccess\\Accounting\\Providers")
  25. #define RAS_PROVIDER_VALUENAME_PATH TEXT("Path")
  26. #define RAS_PROVIDER_VALUENAME_CONFIGCLSID TEXT("ConfigCLSID")
  27. #define RAS_PROVIDER_VALUENAME_DISPLAYNAME TEXT("DisplayName")
  28. DWORD APIENTRY
  29. RasAuthProviderInitialize(
  30. IN RAS_AUTH_ATTRIBUTE * pServerAttributes,
  31. IN HANDLE hEventLog,
  32. IN DWORD dwLoggingLevel
  33. );
  34. DWORD APIENTRY
  35. RasAuthProviderTerminate(
  36. VOID
  37. );
  38. DWORD APIENTRY
  39. RasAuthProviderFreeAttributes(
  40. IN RAS_AUTH_ATTRIBUTE * pAttributes
  41. );
  42. DWORD APIENTRY
  43. RasAuthProviderAuthenticateUser(
  44. IN RAS_AUTH_ATTRIBUTE * prgInAttributes,
  45. OUT RAS_AUTH_ATTRIBUTE ** pprgOutAttributes,
  46. OUT DWORD * lpdwResultCode
  47. );
  48. DWORD APIENTRY
  49. RasAuthConfigChangeNotification(
  50. IN DWORD dwLoggingLevel
  51. );
  52. DWORD APIENTRY
  53. RasAcctProviderInitialize(
  54. IN RAS_AUTH_ATTRIBUTE * pServerAttributes,
  55. IN HANDLE hEventLog,
  56. IN DWORD dwLoggingLevel
  57. );
  58. DWORD APIENTRY
  59. RasAcctProviderTerminate(
  60. VOID
  61. );
  62. DWORD APIENTRY
  63. RasAcctProviderFreeAttributes(
  64. IN RAS_AUTH_ATTRIBUTE * pAttributes
  65. );
  66. DWORD APIENTRY
  67. RasAcctProviderStartAccounting(
  68. IN RAS_AUTH_ATTRIBUTE *prgInAttributes,
  69. OUT RAS_AUTH_ATTRIBUTE **pprgOutAttributes
  70. );
  71. DWORD APIENTRY
  72. RasAcctProviderStopAccounting(
  73. IN RAS_AUTH_ATTRIBUTE *prgInAttributes,
  74. OUT RAS_AUTH_ATTRIBUTE **pprgOutAttributes
  75. );
  76. DWORD APIENTRY
  77. RasAcctProviderInterimAccounting(
  78. IN RAS_AUTH_ATTRIBUTE *prgInAttributes,
  79. OUT RAS_AUTH_ATTRIBUTE **pprgOutAttributes
  80. );
  81. DWORD APIENTRY
  82. RasAcctConfigChangeNotification(
  83. IN DWORD dwLoggingLevel
  84. );
  85. #endif /* WINVER >= 0x0500 */
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89. #endif