Leaked source code of windows server 2003
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.

46 lines
1.5 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. #include <winbase.h> // for SecureZeroMemory
  20. #define MAX_DOMAINNAME DNLEN // From lmcons.h
  21. #define MAX_USERNAME UNLEN // From lmcons.h
  22. #define MAX_PASSWORD PWLEN // From lmcons.h
  23. #define ZERO_PASSWORD(pswd) { \
  24. if (pswd != NULL) { \
  25. SecureZeroMemory(pswd, (wcslen(pswd) + 1) * sizeof(WCHAR)); \
  26. } \
  27. }
  28. #define ALL_MONTHS (TASK_JANUARY | \
  29. TASK_FEBRUARY | \
  30. TASK_MARCH | \
  31. TASK_APRIL | \
  32. TASK_MAY | \
  33. TASK_JUNE | \
  34. TASK_JULY | \
  35. TASK_AUGUST | \
  36. TASK_SEPTEMBER | \
  37. TASK_OCTOBER | \
  38. TASK_NOVEMBER | \
  39. TASK_DECEMBER)
  40. #endif // __DEFINES_HXX__