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.

103 lines
1.8 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1991 - 1999
  3. Module Name:
  4. secsvr.hxx
  5. Abstract:
  6. This file contains an abstraction to the security support for servers.
  7. Author:
  8. Michael Montague (mikemon) 11-Apr-1992
  9. Revision History:
  10. --*/
  11. #ifndef __SECSVR_HXX__
  12. #define __SECSVR_HXX__
  13. class SSECURITY_CONTEXT : public SECURITY_CONTEXT
  14. /*++
  15. Class Description:
  16. Fields:
  17. --*/
  18. {
  19. public:
  20. SSECURITY_CONTEXT(
  21. CLIENT_AUTH_INFO * myAuthInfo,
  22. unsigned AuthContextId,
  23. BOOL fUseDatagram,
  24. RPC_STATUS * pStatus
  25. );
  26. void
  27. DeletePac (
  28. void PAPI * Pac
  29. );
  30. RPC_STATUS
  31. AcceptFirstTime (
  32. IN SECURITY_CREDENTIALS * Credentials,
  33. IN SECURITY_BUFFER_DESCRIPTOR PAPI * InputBufferDescriptor,
  34. IN OUT SECURITY_BUFFER_DESCRIPTOR PAPI * OutputBufferDescriptor,
  35. IN unsigned long AuthenticationLevel,
  36. IN unsigned long DataRepresentation,
  37. IN unsigned long NewContextNeededFlag
  38. );
  39. RPC_STATUS
  40. AcceptThirdLeg (
  41. IN unsigned long DataRepresentation,
  42. IN SECURITY_BUFFER_DESCRIPTOR PAPI * BufferDescriptor,
  43. OUT SECURITY_BUFFER_DESCRIPTOR PAPI * OutBufferDescriptor
  44. );
  45. unsigned long
  46. InquireAuthorizationService (
  47. );
  48. RPC_AUTHZ_HANDLE
  49. InquirePrivileges (
  50. );
  51. RPC_STATUS
  52. ImpersonateClient (
  53. );
  54. void
  55. RevertToSelf (
  56. );
  57. void
  58. GetDceInfo (
  59. RPC_AUTHZ_HANDLE __RPC_FAR * PacHandle,
  60. unsigned long __RPC_FAR * AuthzSvc
  61. );
  62. };
  63. inline
  64. SSECURITY_CONTEXT::SSECURITY_CONTEXT(
  65. CLIENT_AUTH_INFO * myAuthInfo,
  66. unsigned AuthContextId,
  67. BOOL fUseDatagram,
  68. RPC_STATUS * pStatus
  69. )
  70. : SECURITY_CONTEXT(myAuthInfo, AuthContextId, fUseDatagram, pStatus)
  71. {
  72. }
  73. #endif // __SECSVR_HXX__