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.

52 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. misc.h
  5. Abstract:
  6. This module contains various DPAPI declarations.
  7. Author:
  8. jbanes 10-11-2000
  9. --*/
  10. #define DPAPI_PACKAGE_NAME_A "DPAPI"
  11. extern TOKEN_SOURCE DPAPITokenSource;
  12. extern PLSA_SECPKG_FUNCTION_TABLE g_pSecpkgTable;
  13. extern RTL_CRITICAL_SECTION g_csCredHistoryCache;
  14. DWORD IntializeGlobals();
  15. DWORD ShutdownGlobals();
  16. DWORD GetIterationCount();
  17. BOOL FIsLegacyCompliant();
  18. BOOL FIsLegacyNt4Domain();
  19. BOOL FDistributeDomainBackupKey();
  20. DWORD GetMasterKeyDefaultPolicy();
  21. #define MAX_STRING_ALGID_LENGTH 30
  22. DWORD AlgIDToString(LPWSTR wszString, DWORD dwAlgID, DWORD dwStrength );
  23. DWORD GetDefaultAlgInfo(DWORD *pdwProvType,
  24. DWORD *pdwEncryptionAlg,
  25. DWORD *pdwEncryptionAlgSize,
  26. DWORD *pdwMACAlg,
  27. DWORD *pdwMACAlgSize);
  28. void
  29. InitLsaString(
  30. PLSA_UNICODE_STRING LsaString, // destination
  31. LPWSTR String // source (Unicode)
  32. );