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.

36 lines
1.0 KiB

  1. /*****************************************************************************\
  2. FILE: passwordapi.h
  3. DESCRIPTION:
  4. We want to store FTP passwords in a secure API. We will use the
  5. PStore APIs on WinNT and the PWL APIs on Win9x. This code was taken
  6. from wininet.
  7. Copyright (c) 1998 Microsoft Corporation
  8. \*****************************************************************************/
  9. #ifndef _PASSWORDAPI_H
  10. #define _PASSWORDAPI_H
  11. #include "priv.h"
  12. #include "util.h"
  13. // ----------------Public function prototypes----------------------
  14. // Determines availability of credential cache.
  15. HRESULT InitCredentialPersist(void);
  16. // Persist credentials (username/password).
  17. HRESULT SetCachedCredentials(LPCWSTR pszKey, LPCWSTR pszValue);
  18. // Get persisted credentials (username/password).
  19. HRESULT GetCachedCredentials(LPCWSTR pszKey, LPWSTR pszValue, DWORD cchSize);
  20. // Remove persisted credentials (username/password).
  21. HRESULT RemoveCachedCredentials(LPCWSTR pszKey);
  22. HRESULT InitCredentialPersist(void);
  23. #endif // _PASSWORDAPI_H