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.

44 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: defines.hxx
  7. //
  8. // Contents: Common non-resource definitions & macros.
  9. //
  10. // Classes: None.
  11. //
  12. // Functions: None.
  13. //
  14. // History: 07-Jul-96 MarkBl Created.
  15. //
  16. //----------------------------------------------------------------------------
  17. #ifndef __DEFINES_HXX__
  18. #define __DEFINES_HXX__
  19. #define MAX_DOMAINNAME DNLEN // From lmcons.h
  20. #define MAX_USERNAME UNLEN // From lmcons.h
  21. #define MAX_PASSWORD PWLEN // From lmcons.h
  22. #define ZERO_PASSWORD(pswd) { \
  23. if (pswd != NULL) { \
  24. memset(pswd, 0, (wcslen(pswd) + 1) * sizeof(WCHAR)); \
  25. } \
  26. }
  27. #define ALL_MONTHS (TASK_JANUARY | \
  28. TASK_FEBRUARY | \
  29. TASK_MARCH | \
  30. TASK_APRIL | \
  31. TASK_MAY | \
  32. TASK_JUNE | \
  33. TASK_JULY | \
  34. TASK_AUGUST | \
  35. TASK_SEPTEMBER | \
  36. TASK_OCTOBER | \
  37. TASK_NOVEMBER | \
  38. TASK_DECEMBER)
  39. #endif // __DEFINES_HXX__