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.

86 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1999-2000 Microsoft Corporation
  3. Module Name:
  4. Helper.h
  5. Abstract:
  6. Funtion prototype.
  7. Author:
  8. HueiWang 2/17/2000
  9. --*/
  10. #ifndef __HELPER_H__
  11. #define __HELPER_H__
  12. #include <windows.h>
  13. #define MAX_ACCDESCRIPTION_LENGTH 256
  14. #define MAX_HELPACCOUNT_NAME 256
  15. #ifndef __WIN9XBUILD__
  16. #define MAX_HELPACCOUNT_PASSWORD LM20_PWLEN // from lmcons.h
  17. #else
  18. // keep same max. password length same as NT
  19. #define MAX_HELPACCOUNT_PASSWORD 14
  20. #endif
  21. #ifndef __WIN9XBUILD__
  22. #include <ntsecapi.h>
  23. #endif
  24. #ifdef __cplusplus
  25. extern "C"{
  26. #endif
  27. //
  28. // create a random password, buffer must
  29. // be at least MAX_HELPACCOUNT_PASSWORD+1
  30. VOID
  31. CreatePassword(
  32. TCHAR *pszPassword
  33. );
  34. #ifndef __WIN9XBUILD__
  35. #ifdef DBG
  36. void
  37. DebugPrintf(
  38. IN LPCTSTR format, ...
  39. );
  40. #else
  41. #define DebugPrintf
  42. #endif //PRIVATE_DEBUG
  43. #else
  44. #define DebugPrintf
  45. #endif
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif