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.4 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. passrecp.h
  5. Abstract:
  6. This module contains private data definitions for the password recovery system
  7. Author:
  8. Pete Skelly (petesk) 09-May-00
  9. --*/
  10. #ifndef __PASSRECP_H__
  11. #define __PASSRECP_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #define RECOVERY_BLOB_MAGIC *((DWORD *)"MSRB")
  16. #define RECOVERY_BLOB_VERSION 1
  17. #define RECOVERY_SUPPLEMENTAL_CREDENTIAL_VERSION 1
  18. typedef struct _RECOVERY_SUPPLEMENTAL_CREDENTIAL
  19. {
  20. DWORD dwVersion;
  21. DWORD cbRecoveryCertHashSize;
  22. DWORD cbRecoveryCertSignatureSize;
  23. DWORD cbEncryptedPassword;
  24. } RECOVERY_SUPPLEMENTAL_CREDENTIAL, *PRECOVERY_SUPPLEMENTAL_CREDENTIAL;
  25. DWORD
  26. RecoveryRetrieveSupplementalCredential(
  27. PSID pUserSid,
  28. PRECOVERY_SUPPLEMENTAL_CREDENTIAL *ppSupplementalCred,
  29. DWORD *pcbSupplementalCred);
  30. DWORD
  31. RecoverySetSupplementalCredential(
  32. PSID pUserSid,
  33. PRECOVERY_SUPPLEMENTAL_CREDENTIAL pSupplementalCred,
  34. DWORD cbSupplementalCred);
  35. DWORD
  36. PRImportRecoveryKey(
  37. IN PUNICODE_STRING pUserName,
  38. IN PUNICODE_STRING pCurrentPassword,
  39. IN BYTE* pbRecoveryPublic,
  40. IN DWORD cbRecoveryPublic);
  41. DWORD
  42. PRGetUserSid(
  43. IN PBYTE pbRecoveryPrivate,
  44. IN DWORD cbRecoveryPrivate,
  45. OUT PSID *ppSid);
  46. DWORD
  47. DPAPICreateNestedDirectories(
  48. IN LPWSTR szFullPath,
  49. IN LPWSTR szCreationStartPoint);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif // __RECOVERY_H__