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.

59 lines
1.8 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 __CRYPT32P_H__
  12. #define __CRYPT32P_H__
  13. DWORD
  14. WINAPI
  15. SPCryptProtect(
  16. PVOID pvContext, // server context
  17. PBYTE* ppbOut, // out encr data
  18. DWORD* pcbOut, // out encr cb
  19. PBYTE pbIn, // in ptxt data
  20. DWORD cbIn, // in ptxt cb
  21. LPCWSTR szDataDescr, // in
  22. PBYTE pbOptionalEntropy, // OPTIONAL
  23. DWORD cbOptionalEntropy,
  24. PSSCRYPTPROTECTDATA_PROMPTSTRUCT psPrompt, // OPTIONAL prompting struct
  25. DWORD dwFlags,
  26. BYTE* pbOptionalPassword,
  27. DWORD cbOptionalPassword
  28. );
  29. DWORD
  30. WINAPI
  31. SPCryptUnprotect(
  32. PVOID pvContext, // server context
  33. PBYTE* ppbOut, // out ptxt data
  34. DWORD* pcbOut, // out ptxt cb
  35. PBYTE pbIn, // in encr data
  36. DWORD cbIn, // in encr cb
  37. LPWSTR* ppszDataDescr, // OPTIONAL
  38. PBYTE pbOptionalEntropy, // OPTIONAL
  39. DWORD cbOptionalEntropy,
  40. PSSCRYPTPROTECTDATA_PROMPTSTRUCT psPrompt, // OPTIONAL, prompting struct
  41. DWORD dwFlags,
  42. BYTE* pbOptionalPassword,
  43. DWORD cbOptionalPassword
  44. );
  45. #endif // __CRYPT32P_H__