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.

65 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1996, 1997 Microsoft Corporation
  3. Module Name:
  4. session.h
  5. Abstract:
  6. This module contains prototypes to support communication with the LSA
  7. (Local Security Authority) to permit querying of active sessions.
  8. Author:
  9. Scott Field (sfield) 02-Mar-97
  10. --*/
  11. #ifndef __SESSION_H__
  12. #define __SESSION_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. DWORD
  17. QueryDerivedCredential(
  18. IN OUT GUID *CredentialID,
  19. IN LUID *pLogonId,
  20. IN DWORD dwFlags,
  21. IN PBYTE pbMixingBytes,
  22. IN DWORD cbMixingBytes,
  23. IN OUT BYTE rgbDerivedCredential[A_SHA_DIGEST_LEN]
  24. );
  25. DWORD
  26. DeleteCredentialHistoryMap();
  27. DWORD
  28. LogonCredGenerateSignature(
  29. IN HANDLE hUserToken,
  30. IN PBYTE pbData,
  31. IN DWORD cbData,
  32. IN PBYTE pbCurrentOWF,
  33. OUT PBYTE *ppbSignature,
  34. OUT DWORD *pcbSignature);
  35. DWORD
  36. LogonCredVerifySignature(
  37. IN HANDLE hUserToken, // optional
  38. IN PBYTE pbData,
  39. IN DWORD cbData,
  40. IN PBYTE pbCurrentOWF,
  41. IN PBYTE pbSignature,
  42. IN DWORD cbSignature);
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46. #endif // __SESSION_H__