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.

98 lines
2.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1999.
  5. //
  6. // File: krbevent.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 05-Oct-98 MikeSw Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __KRBEVENT_H__
  18. #define __KRBEVENT_H__
  19. #define KERB_FUNC_INIT_CONTEXT L"InitializeSecurityContext"
  20. #define KERB_FUNC_ACCEPT_CONTEXT L"AcceptSecurityContext"
  21. #define KERB_FUNC_LOGON_USER L"LogonUser"
  22. #define KERB_FUNC_ACQUIRE_CREDS L"AcquireCredentialsHandle"
  23. #define KERB_FUNC_CHANGE_PASSWORD L"ChangePassword"
  24. #define KERB_FUNC_BUILD_PREAUTH L"BuildPreAuthDataForRealm"
  25. #ifndef WIN32_CHICAGO
  26. NTSTATUS
  27. KerbInitializeEvents(void);
  28. VOID
  29. KerbReportPACError(
  30. PUNICODE_STRING ClientName,
  31. PUNICODE_STRING ClientDomain,
  32. NTSTATUS FailureStatus
  33. );
  34. VOID
  35. KerbReportPkinitError(
  36. ULONG PolicyStatus,
  37. IN OPTIONAL PCCERT_CONTEXT KdcCert
  38. );
  39. VOID
  40. KerbReportKerbError(
  41. IN OPTIONAL PKERB_INTERNAL_NAME PrincipalName,
  42. IN OPTIONAL PUNICODE_STRING PrincipalRealm,
  43. IN OPTIONAL PKERB_LOGON_SESSION LogonSession,
  44. IN OPTIONAL PKERB_CREDENTIAL Credential,
  45. IN ULONG KlinInfo,
  46. IN OPTIONAL PKERB_ERROR ErrorMsg,
  47. IN ULONG KerbError,
  48. IN OPTIONAL PKERB_EXT_ERROR pExtendedError,
  49. IN BOOLEAN RequiredEvent
  50. );
  51. VOID
  52. KerbReportApError(
  53. PKERB_ERROR ErrorMessage
  54. );
  55. VOID
  56. KerbReportNtstatus(
  57. IN ULONG ErrorClass,
  58. IN NTSTATUS Status,
  59. IN LPWSTR* ErrorStrings,
  60. IN ULONG NumberOfStrings,
  61. IN PULONG Data,
  62. IN ULONG NumberOfUlong
  63. );
  64. VOID
  65. KerbShutdownEvents(void);
  66. #else // WIN32_CHICAGO
  67. #define KerbInitializeEvents() (STATUS_SUCCESS)
  68. #define KerbShutdownEvents() (TRUE)
  69. #define KerbReportKerbError(_a_,_b_,_u_,_v_,_w_,_x_,_y_,_z_)
  70. #define KerbReportApError(_a_)
  71. #endif
  72. #endif // __KRBEVENT_H__