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.

58 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1996, 1997 Microsoft Corporation
  3. Module Name:
  4. keybckup.h
  5. Abstract:
  6. This module contains routines associated with client side Key Backup
  7. operations.
  8. Author:
  9. Scott Field (sfield) 16-Sep-97
  10. --*/
  11. #ifndef __KEYBCKUP_H__
  12. #define __KEYBCKUP_H__
  13. DWORD
  14. LocalBackupRestoreData(
  15. IN HANDLE hToken,
  16. IN PMASTERKEY_STORED phMasterKey,
  17. IN PBYTE pbDataIn,
  18. IN DWORD cbDataIn,
  19. OUT PBYTE *ppbDataOut,
  20. OUT DWORD *pcbDataOut,
  21. IN const GUID *pguidAction
  22. );
  23. DWORD
  24. BackupRestoreData(
  25. IN HANDLE hToken,
  26. IN PMASTERKEY_STORED phMasterKey,
  27. IN PBYTE pbDataIn,
  28. IN DWORD cbDataIn,
  29. OUT PBYTE *ppbDataOut,
  30. OUT DWORD *pcbDataOut,
  31. IN BOOL fBackup
  32. );
  33. DWORD
  34. AttemptLocalBackup(
  35. IN BOOL fRetrieve,
  36. IN HANDLE hToken,
  37. IN PMASTERKEY_STORED phMasterKey,
  38. IN PBYTE pbMasterKey,
  39. IN DWORD cbMasterKey,
  40. IN PBYTE pbLocalKey,
  41. IN DWORD cbLocalKey,
  42. OUT PBYTE * ppbBBK,
  43. OUT DWORD * pcbBBK
  44. );
  45. #endif // __KEYBCKUP_H__