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.

63 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. passrec.h
  5. Abstract:
  6. This module contains prototypes to support local account password recovery.
  7. Author:
  8. Pete Skelly (petesk) 09-May-00
  9. --*/
  10. #ifndef __PASSREC_H__
  11. #define __PASSREC_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. DWORD
  16. PRRecoverPassword(
  17. IN LPWSTR pszUsername,
  18. IN PBYTE pbRecoveryPrivate,
  19. IN DWORD cbRecoveryPrivate,
  20. IN LPWSTR pszNewPassword);
  21. #define RECOVERY_STATUS_OK 0
  22. #define RECOVERY_STATUS_NO_PUBLIC_EXISTS 1
  23. #define RECOVERY_STATUS_FILE_NOT_FOUND 2
  24. #define RECOVERY_STATUS_USER_NOT_FOUND 3
  25. #define RECOVERY_STATUS_PUBLIC_SIGNATURE_INVALID 4
  26. DWORD
  27. PRQueryStatus(
  28. IN OPTIONAL LPWSTR pszDomain,
  29. IN OPTIONAL LPWSTR pszUsername,
  30. OUT DWORD *pdwStatus);
  31. DWORD
  32. PRGenerateRecoveryKey(
  33. IN LPWSTR pszUsername,
  34. IN LPWSTR pszCurrentPassword,
  35. OUT PBYTE *ppbRecoveryPrivate,
  36. OUT DWORD *pcbRecoveryPrivate);
  37. DWORD
  38. WINAPI
  39. CryptResetMachineCredentials(
  40. DWORD dwFlags);
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif // __PASSREC_H__