Source code of Windows XP (NT5)
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.

82 lines
2.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : protstor.h //
  3. // DESCRIPTION : //
  4. // AUTHOR : //
  5. // HISTORY : //
  6. // Dec 4 1996 jeffspel Create //
  7. // Apr 21 1997 jeffspel Changes for NT 5 tree //
  8. // //
  9. // Copyright (C) 1993 Microsoft Corporation All Rights Reserved //
  10. /////////////////////////////////////////////////////////////////////////////
  11. #ifndef __PROTSTOR_H__
  12. #define __PROTSTOR_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. extern BOOL
  17. CheckPStoreAvailability(
  18. PSTORE_INFO *pPStore);
  19. extern DWORD
  20. CreateNewPSKeyset(
  21. PSTORE_INFO *pPStore,
  22. DWORD dwFlags);
  23. extern DWORD
  24. GetKeysetTypeAndSubType(
  25. PNTAGUserList pUser);
  26. extern DWORD
  27. RestoreKeysetFromProtectedStorage(
  28. PNTAGUserList pUser,
  29. LPWSTR szPrompt,
  30. BYTE **ppbKey,
  31. DWORD *pcbKey,
  32. BOOL fSigKey,
  33. BOOL fMachineKeySet,
  34. BOOL *pfUIOnKey);
  35. void RemoveKeysetFromMemory(
  36. PNTAGUserList pUser
  37. );
  38. extern DWORD
  39. SetUIPrompt(
  40. PNTAGUserList pUser,
  41. LPWSTR szPrompt);
  42. extern DWORD
  43. SaveKeyToProtectedStorage(
  44. PNTAGUserList pUser,
  45. DWORD dwFlags,
  46. LPWSTR szPrompt,
  47. BOOL fSigKey,
  48. BOOL fMachineKeySet);
  49. extern DWORD
  50. DeleteKeyFromProtectedStorage(
  51. NTAGUserList *pUser,
  52. PCSP_STRINGS pStrings,
  53. DWORD dwKeySpec,
  54. BOOL fMachineKeySet,
  55. BOOL fMigration);
  56. extern DWORD
  57. DeleteFromProtectedStorage(
  58. CONST char *pszUserID,
  59. PCSP_STRINGS pStrings,
  60. HKEY hRegKey,
  61. BOOL fMachineKeySet);
  62. void FreePSInfo(
  63. PSTORE_INFO *pPStore
  64. );
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #endif // __PROTSTOR_H__