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.

71 lines
1.4 KiB

  1. ///**************************************************************
  2. /// Microsoft LAN Manager *
  3. /// Copyright(c) Microsoft Corp., 1990 *
  4. ///**************************************************************
  5. //
  6. // For use in UASTEST*.C
  7. //
  8. // #define printf NetpDbgPrint
  9. #define exit ExitProcess
  10. #define USER1 L"User1"
  11. #define USER2 L"User2"
  12. #define NOTTHERE L"NotThere"
  13. #define USER L"USERS"
  14. #define GUEST L"GUESTS"
  15. #define ADMIN L"ADMINS"
  16. #define TEXIT if(exit_flag)exit(1);
  17. #define ENUM_FILTER FILTER_NORMAL_ACCOUNT
  18. //
  19. // uastestm.c will #include this file with LSRVDATA_ALLOCATE defined.
  20. // That will cause each of these variables to be allocated.
  21. //
  22. #ifdef UASTEST_ALLOCATE
  23. #define EXTERN
  24. #define INIT( _x ) = _x
  25. #else
  26. #define EXTERN extern
  27. #define INIT(_x)
  28. #endif
  29. EXTERN LPWSTR server INIT( NULL );
  30. EXTERN DWORD err INIT( 0 );
  31. EXTERN DWORD ParmError INIT( 0 );
  32. EXTERN DWORD exit_flag INIT( 0 );
  33. EXTERN DWORD totavail;
  34. EXTERN DWORD total;
  35. EXTERN DWORD nread;
  36. //
  37. // Interface to error_exit
  38. //
  39. #define ACTION 0
  40. #define PASS 1
  41. #define FAIL 2
  42. EXTERN PCHAR testname;
  43. void
  44. error_exit(
  45. int type,
  46. char *msgp,
  47. LPWSTR namep
  48. );
  49. void PrintUnicode(
  50. LPWSTR string
  51. );
  52. void TestDiffDword(
  53. char *msgp,
  54. LPWSTR namep,
  55. DWORD Actual,
  56. DWORD Good
  57. );