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.

134 lines
3.6 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. msvsharelevel.hxx
  5. Abstract:
  6. msvsharelevel
  7. Author:
  8. Larry Zhu (LZhu) January 1, 2002
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef MSV_SHARE_LEVEL_HXX
  14. #define MSV_SHARE_LEVEL_HXX
  15. #include <ntlmsp.h>
  16. #include <lmcons.h>
  17. HRESULT
  18. GetAuthenticateMessage(
  19. IN PCredHandle phCredentialHandle,
  20. IN ULONG fContextReq,
  21. IN PTSTR pszTargetName,
  22. IN ULONG TargetDataRep,
  23. IN ULONG cbNtlmChallengeMessage,
  24. IN OPTIONAL NTLM_CHALLENGE_MESSAGE* pNtlmChallengeMessage,
  25. IN ULONG cbChallengeMessage,
  26. IN CHALLENGE_MESSAGE* pChallengeMessage,
  27. OUT PCtxtHandle phClientContextHandle,
  28. OUT ULONG pfContextAttr,
  29. OUT ULONG* pcbAuthMessage,
  30. OUT AUTHENTICATE_MESSAGE** ppAuthMessage,
  31. OUT NTLM_INITIALIZE_RESPONSE* pInitResponse
  32. );
  33. NTSTATUS
  34. GetChallengeMessage(
  35. IN ULONG ContextReqFlags,
  36. IN OPTIONAL ULONG cbNegotiateMessage,
  37. IN ULONG TargetFlags,
  38. IN UNICODE_STRING* pTargetInfo,
  39. IN UNICODE_STRING* pTargetName,
  40. IN PNEGOTIATE_MESSAGE pNegotiateMessage,
  41. IN UCHAR ChallengeToClient[MSV1_0_CHALLENGE_LENGTH],
  42. OUT PULONG pcbChallengeMessage,
  43. OUT CHALLENGE_MESSAGE** ppChallengeMessage,
  44. OUT PULONG pContextAttributes
  45. );
  46. NTSTATUS
  47. GetNegociateMessage(
  48. IN OPTIONAL OEM_STRING* pOemDomainName,
  49. IN OPTIONAL OEM_STRING* pOemWorkstationName,
  50. IN ULONG NegotiateFlags,
  51. OUT ULONG* pcbNegotiateMessage,
  52. OUT NEGOTIATE_MESSAGE** ppNegotiateMessage
  53. );
  54. NTSTATUS
  55. MsvChallenge(
  56. IN OPTIONAL PTSTR pszCredPrincipal,
  57. IN OPTIONAL LUID* pCredLogonID,
  58. IN OPTIONAL VOID* pAuthData,
  59. IN OEM_STRING* pOemDomainName,
  60. IN OEM_STRING* pOemWorkstationName,
  61. IN ULONG NegotiateFlags,
  62. IN ULONG TargetFlags,
  63. IN BOOLEAN bForceGuest,
  64. IN ULONG fContextAttr,
  65. IN ULONG TargetDataRep,
  66. IN UNICODE_STRING* pPassword,
  67. IN UNICODE_STRING* pUserName,
  68. IN UNICODE_STRING* pDomainName,
  69. IN UCHAR ChallengeToClient[MSV1_0_CHALLENGE_LENGTH],
  70. IN OPTIONAL UNICODE_STRING* pDnsDomainName,
  71. IN OPTIONAL UNICODE_STRING* pDnsComputerName,
  72. IN OPTIONAL UNICODE_STRING* pDnsTreeName,
  73. IN OPTIONAL UNICODE_STRING* pComputerName,
  74. IN OPTIONAL UNICODE_STRING* pComputerDomainName,
  75. OUT ULONG* pcbAuthMessage,
  76. OUT AUTHENTICATE_MESSAGE** ppAuthMessage,
  77. OUT PCtxtHandle phCliCtxt,
  78. OUT ULONG* pfContextAttr
  79. );
  80. NTSTATUS
  81. GetNtlmChallengeMessage(
  82. IN OPTIONAL UNICODE_STRING* pPassword,
  83. IN OPTIONAL UNICODE_STRING* pUserName,
  84. IN OPTIONAL UNICODE_STRING* pDomainName,
  85. OUT ULONG* pcbNtlmChallengeMessage,
  86. OUT NTLM_CHALLENGE_MESSAGE** ppNtlmChallengeMessage
  87. );
  88. NTSTATUS
  89. GetAuthenticateResponse(
  90. IN PCredHandle pServerCredHandle,
  91. IN ULONG fContextAttr,
  92. IN ULONG TargetDataRep,
  93. IN ULONG cbAuthMessage,
  94. IN AUTHENTICATE_MESSAGE* pAuthMessage,
  95. IN NTLM_AUTHENTICATE_MESSAGE* pNtlmAuthMessage,
  96. OUT PCtxtHandle phServerCtxtHandle,
  97. OUT ULONG* pfContextAttr,
  98. OUT NTLM_ACCEPT_RESPONSE* pAcceptResponse
  99. );
  100. NTSTATUS
  101. MsvAuthenticate(
  102. IN OPTIONAL PTSTR pszCredPrincipal,
  103. IN OPTIONAL LUID* pCredLogonID,
  104. IN OPTIONAL VOID* pAuthData,
  105. IN ULONG fContextAttr,
  106. IN ULONG TargetDataRep,
  107. IN ULONG cbAuthMessage,
  108. IN AUTHENTICATE_MESSAGE* pAuthMessage,
  109. IN NTLM_AUTHENTICATE_MESSAGE* pNtlmAuthMessage, OUT PCtxtHandle phServerCtxt,
  110. OUT ULONG* pfContextAttr
  111. );
  112. #endif // #ifndef MSV_SHARE_LEVEL_HXX