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.

78 lines
2.7 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: param.h
  4. //
  5. // Module: WLBS API
  6. //
  7. // Description: Function here are used by API internally and by notifier object
  8. // externally
  9. //
  10. // Copyright (C) Microsoft Corporation. All rights reserved.
  11. //
  12. // Author: fengsun Created 3/9/00
  13. //
  14. //+----------------------------------------------------------------------------
  15. #pragma once
  16. #include "wlbsconfig.h"
  17. #include "wlbsutil.h"
  18. #define WLBS_FIELD_LOW 0
  19. #define WLBS_FIELD_HIGH 255
  20. #define WLBS_IP_FIELD_ZERO_LOW 1
  21. #define WLBS_IP_FIELD_ZERO_HIGH 223
  22. bool WINAPI ParamReadReg
  23. (
  24. const GUID& AdapterGuid, /* IN - Adapter GUID */
  25. PWLBS_REG_PARAMS reg_data, /* OUT - Registry parameters */
  26. bool fUpgradeFromWin2k = false,
  27. bool *pfPortRulesInBinaryForm = NULL
  28. );
  29. BOOL WINAPI WlbsValidateParams
  30. (
  31. PWLBS_REG_PARAMS paramp /* IN OUT - Registry parameters */
  32. );
  33. bool WINAPI ParamWriteReg
  34. (
  35. const GUID& AdapterGuid, /* IN - Adapter GUID */
  36. PWLBS_REG_PARAMS reg_data /* IN - Registry parameters */
  37. );
  38. bool WINAPI ParamDeleteReg
  39. (
  40. const GUID& AdapterGuid, /* IN - Adapter GUID */
  41. bool fDeleteObsoleteEntries = false
  42. );
  43. DWORD WINAPI ParamSetDefaults(PWLBS_REG_PARAMS reg_data);
  44. bool WINAPI RegChangeNetworkAddress(const GUID& AdapterGuid, const WCHAR* mac_address, BOOL fRemove);
  45. void WINAPI NotifyAdapterAddressChange (const WCHAR * driver_name);
  46. void WINAPI NotifyAdapterAddressChangeEx (const WCHAR * driver_name, const GUID& AdapterGuid, bool bWaitAndQuery);
  47. void WINAPI GetDriverNameFromGUID (const GUID & AdapterGuid, OUT TCHAR * driver_name, DWORD size);
  48. void WINAPI NotifyAdapterPropertyChange (const WCHAR * driver_name, DWORD eventFlag);
  49. DWORD WINAPI NotifyDriverConfigChanges(HANDLE hDeviceWlbs, const GUID& AdapterGuid);
  50. bool WINAPI RegReadAdapterIp(const GUID& AdapterGuid,
  51. OUT DWORD& dwClusterIp, OUT DWORD& dwDedicatedIp);
  52. HKEY WINAPI RegOpenWlbsSetting(const GUID& AdapterGuid, bool fReadOnly = false);
  53. DWORD ParamWriteConfig(const GUID& AdapterGuid,
  54. WLBS_REG_PARAMS* new_reg_params,
  55. WLBS_REG_PARAMS* old_reg_params,
  56. bool * p_reload_required,
  57. bool * p_notify_adapter_required);
  58. DWORD ParamCommitChanges(const GUID& AdapterGuid,
  59. HANDLE hDeviceWlbs,
  60. DWORD& cl_addr,
  61. DWORD& ded_addr,
  62. bool * p_reload_required,
  63. bool * p_mac_addr_change);