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.

58 lines
1.1 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: pwutil.h
  4. //
  5. // Module: CMDIAL32.DLL, CMCFG32.DLL, AND MIGRATE.DLL
  6. //
  7. // Synopsis: Header for pwutil functions
  8. // Simple encryption functions borrowed from RAS
  9. //
  10. // Copyright (c) 1994-1999 Microsoft Corporation
  11. //
  12. // Author: nickball Created 08/03/99
  13. //
  14. //+----------------------------------------------------------------------------
  15. #ifndef CM_PWUTIL_H_
  16. #define CM_PWUTIL_H_
  17. VOID
  18. CmDecodePasswordA(
  19. CHAR* pszPassword
  20. );
  21. VOID
  22. CmDecodePasswordW(
  23. WCHAR* pszPassword
  24. );
  25. VOID
  26. CmEncodePasswordA(
  27. CHAR* pszPassword
  28. );
  29. VOID
  30. CmEncodePasswordW(
  31. WCHAR* pszPassword
  32. );
  33. VOID
  34. CmWipePasswordA(
  35. CHAR* pszPassword
  36. );
  37. VOID
  38. CmWipePasswordW(
  39. WCHAR* pszPassword
  40. );
  41. #ifdef UNICODE
  42. #define CmDecodePassword CmDecodePasswordW
  43. #define CmEncodePassword CmEncodePasswordW
  44. #define CmWipePassword CmWipePasswordW
  45. #else
  46. #define CmDecodePassword CmDecodePasswordA
  47. #define CmEncodePassword CmEncodePasswordA
  48. #define CmWipePassword CmWipePasswordA
  49. #endif
  50. #endif // CM_PWUTIL_H_