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.

97 lines
1.8 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 <winsock2.h>
  18. #include <ipexport.h>
  19. #include <icmpapi.h>
  20. #include <strsafe.h>
  21. #include <wlbsutil.h>
  22. #include <wlbsctrl.h>
  23. #include <wlbsconfig.h>
  24. #include <wlbsparm.h>
  25. #include <netcfgx.h>
  26. #include <devguid.h>
  27. #include <cfg.h>
  28. #include <wlbsiocl.h>
  29. #include <nlberr.h>
  30. #include <cfgutil.h>
  31. #include "myntrtl.h"
  32. //
  33. // Debugging stuff...
  34. //
  35. extern BOOL g_DoBreaks;
  36. #define MyBreak(_str) ((g_DoBreaks) ? (OutputDebugString(_str),DebugBreak(),1):0)
  37. #define ASSERT assert
  38. #define REF
  39. #define ASIZE(_array) (sizeof(_array)/sizeof(_array[0]))
  40. //
  41. // Use this to copy to an array (not pointer) destination
  42. //
  43. #define ARRAYSTRCPY(_dest, _src) \
  44. StringCbCopy((_dest), sizeof(_dest), (_src))
  45. #define ARRAYSTRCAT(_dest, _src) \
  46. StringCbCat((_dest), sizeof(_dest), (_src))
  47. //
  48. // Following (MyXXX) functions are to be used only on systems
  49. // that do not have wlbsctrl.dll installed.
  50. //
  51. // They are defined in wlbsprivate.cpp
  52. //
  53. DWORD
  54. MyWlbsSetDefaults(PWLBS_REG_PARAMS reg_data);
  55. DWORD
  56. MyWlbsEnumPortRules(
  57. const PWLBS_REG_PARAMS reg_data,
  58. PWLBS_PORT_RULE rules,
  59. PDWORD num_rules
  60. );
  61. VOID
  62. MyWlbsDeleteAllPortRules(
  63. PWLBS_REG_PARAMS reg_data
  64. );
  65. DWORD MyWlbsAddPortRule(
  66. PWLBS_REG_PARAMS reg_data,
  67. const PWLBS_PORT_RULE rule
  68. );
  69. BOOL MyWlbsValidateParams(
  70. const PWLBS_REG_PARAMS paramp
  71. );