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.

84 lines
1.9 KiB

  1. /*++
  2. Copyright(c) 2001 Microsoft Corporation
  3. Module Name:
  4. NLB Manager
  5. File Name:
  6. nlbhost.h
  7. Abstract:
  8. Header file for class NLBHost
  9. NLBHost is responsible for connecting to an NLB host and getting/setting
  10. its NLB-related configuration.
  11. History:
  12. 03/31/01 JosephJ Created
  13. --*/
  14. typedef struct
  15. {
  16. LPCWSTR szMachine; // Must be non-NULL
  17. LPCWSTR szUserName; // NULL == use current
  18. LPCWSTR szPassword; // NULL == use current
  19. } WMI_CONNECTION_INFO, *PWMI_CONNECTION_INFO;
  20. typedef
  21. VOID
  22. (*PFN_LOGGER)(
  23. PVOID Context,
  24. const WCHAR * Text
  25. );
  26. WBEMSTATUS
  27. NlbHostGetConfiguration(
  28. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  29. IN LPCWSTR szNicGuid,
  30. OUT PNLB_EXTENDED_CLUSTER_CONFIGURATION pCurrentCfg
  31. );
  32. WBEMSTATUS
  33. NlbHostGetCompatibleNics(
  34. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  35. OUT LPWSTR **ppszNics, // free using delete
  36. OUT UINT *pNumNics, // free using delete
  37. OUT UINT *pNumBoundToNlb // Optional
  38. );
  39. WBEMSTATUS
  40. NlbHostDoUpdate(
  41. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  42. IN LPCWSTR szNicGuid,
  43. IN LPCWSTR szClientDescription,
  44. IN PNLB_EXTENDED_CLUSTER_CONFIGURATION pNewState,
  45. OUT UINT *pGeneration,
  46. OUT WCHAR **ppLog // free using delete operator.
  47. );
  48. WBEMSTATUS
  49. NlbHostGetUpdateStatus(
  50. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  51. IN LPCWSTR szNicGuid,
  52. IN UINT Generation,
  53. OUT WBEMSTATUS *pCompletionStatus,
  54. OUT WCHAR **ppLog // free using delete operator.
  55. );
  56. WBEMSTATUS
  57. NlbHostPing(
  58. LPCWSTR szBindString,
  59. UINT Timeout // In milliseconds.
  60. );