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.

54 lines
1.5 KiB

  1. /*
  2. * File Name: FAXPWD.H
  3. *
  4. * Copyright (c)1994 Microsoft Corporation, All Rights Reserved
  5. *
  6. * Author: Ken Horn (a-kenh)
  7. * Created: 03-Aug-94
  8. *
  9. *
  10. */
  11. #ifndef _FAXPWD_H_
  12. #define _FAXPWD_H_
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. // takes a TCHAR[MAPWD] to hold longest allowed password
  17. #define MAXPWD 128
  18. #define MAXLOGINPWD MAXPWD
  19. #define MAXSIMPLEPWD MAXPWD
  20. #define MINPWDLEN 4 // string length of shortest valid password.
  21. BOOL __declspec(dllexport) WINAPI pwdReplaceAccount(HWND hwndParent,
  22. FARPROC fpxLogin, FARPROC fpxLogout, FARPROC fpxHasKeys, FARPROC fpxReinit,
  23. LPDWORD phSec);
  24. BOOL __declspec(dllexport) WINAPI pwdChangeKeyPassword(HWND hwndParent,
  25. FARPROC fpxLogin, FARPROC fpxLogout, FARPROC fpxChangePwd, FARPROC fpxReinit,
  26. LPDWORD phSec);
  27. DWORD __declspec(dllexport) WINAPI pwdValidateUserLogin(HWND hwndParent,
  28. FARPROC fpxLogin, FARPROC fpxLogout, FARPROC fpxHasKeys, FARPROC fpxReinit);
  29. BOOL __declspec(dllexport) WINAPI pwdGetSimplePassword(HWND hwndParent,
  30. LPTSTR pPassword, WORD cbPassword);
  31. BOOL __declspec(dllexport) WINAPI pwdConfirmSimplePassword(HWND hwndParent,
  32. LPTSTR pPassword, WORD cbPassword);
  33. BOOL __declspec(dllexport) WINAPI pwdConfirmLoginPassword(HWND hwndParent,
  34. LPTSTR pPassword, WORD cbPassword, LPBOOL pbCacheit);
  35. void __declspec(dllexport) WINAPI pwdDeleteCachedPassword();
  36. BOOL __declspec(dllexport) WINAPI pwdSetCachePassword(LPTSTR pPassword);
  37. #ifdef __cplusplus
  38. } // extern "C"
  39. #endif
  40. #endif // _FAXPWD_H