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.

76 lines
1.8 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. Context_t *pContext);
  26. extern DWORD
  27. SetKeyTypeSubtype(
  28. Context_t *pContext,
  29. PKEY_TYPE_SUBTYPE pTypeSubtype);
  30. extern DWORD
  31. RestoreKeysetFromProtectedStorage(
  32. Context_t *pContext,
  33. Key_t *pKey,
  34. LPWSTR szPrompt,
  35. BOOL fSigKey,
  36. BOOL *pfUIOnKey);
  37. extern DWORD
  38. SetKeysetTypeAndSubtype(
  39. Context_t *pContext);
  40. extern DWORD
  41. SetUIPrompt(
  42. Context_t *pContext,
  43. LPWSTR szPrompt);
  44. extern DWORD
  45. DeleteKeyFromProtectedStorage(
  46. Context_t *pContext,
  47. PCSP_STRINGS pStrings,
  48. DWORD dwKeySpec,
  49. BOOL fMigration);
  50. extern DWORD
  51. DeleteFromProtectedStorage(
  52. IN Context_t *pContext,
  53. PCSP_STRINGS pStrings,
  54. IN BOOL fMigration);
  55. extern void
  56. FreePSInfo(
  57. PSTORE_INFO *pPStore);
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif // __PROTSTOR_H__