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.

60 lines
1.1 KiB

  1. /*++
  2. Copyright(c) 2001 Microsoft Corporation
  3. Module Name:
  4. NLB Manager provider test harness
  5. File Name:
  6. private.h
  7. Abstract:
  8. Internal headers
  9. History:
  10. 04/08/01 JosephJ Created
  11. --*/
  12. // #define NLB_USE_MUTEX 1
  13. #include <FWcommon.h>
  14. #include <assert.h>
  15. #include <objbase.h>
  16. #include <initguid.h>
  17. #include <strsafe.h>
  18. #include "wlbsconfig.h"
  19. #include "myntrtl.h"
  20. #include "wlbsparm.h"
  21. #include <nlberr.h>
  22. #include <cfgutil.h>
  23. #include <nlbclient.h>
  24. #include "fake.h"
  25. //
  26. // Debugging stuff...
  27. //
  28. extern BOOL g_DoBreaks;
  29. #define MyBreak(_str) ((g_DoBreaks) ? (OutputDebugString(_str),DebugBreak(),1):0)
  30. extern BOOL g_Fake; // If true, operate in "fake mode" -- see NlbHostFake()
  31. #define REF
  32. #define ASSERT assert
  33. #define ASIZE(_array) (sizeof(_array)/sizeof(_array[0]))
  34. //
  35. // Use this to copy to an array (not pointer) destination
  36. //
  37. #define ARRAYSTRCPY(_dest, _src) \
  38. StringCbCopy((_dest), sizeof(_dest), (_src))
  39. #define ARRAYSTRCAT(_dest, _src) \
  40. StringCbCat((_dest), sizeof(_dest), (_src))