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.

101 lines
2.7 KiB

  1. /*++
  2. Copyright(c) 2001 Microsoft Corporation
  3. Module Name:
  4. NLB Manager
  5. File Name:
  6. Fake.h
  7. Abstract:
  8. Fake Implementation of NlbHostXXX Apis (FakeNlbHostXXX apis)
  9. NLBHost is responsible for connecting to an NLB host and getting/setting
  10. its NLB-related configuration.
  11. History:
  12. 09/02/01 JosephJ Created
  13. --*/
  14. VOID
  15. FakeInitialize(VOID);
  16. WBEMSTATUS
  17. FakeNlbHostGetMachineIdentification(
  18. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  19. OUT LPWSTR *pszMachineName, // free using delete
  20. OUT LPWSTR *pszMachineGuid, // free using delete -- may be null
  21. OUT BOOL *pfNlbMgrProviderInstalled // If nlb manager provider is installed.
  22. );
  23. WBEMSTATUS
  24. FakeNlbHostGetCompatibleNics(
  25. PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  26. OUT LPWSTR **ppszNics, // free using delete
  27. OUT UINT *pNumNics, // free using delete
  28. OUT UINT *pNumBoundToNlb
  29. );
  30. WBEMSTATUS
  31. FakeNlbHostGetConfiguration(
  32. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  33. IN LPCWSTR szNicGuid,
  34. OUT PNLB_EXTENDED_CLUSTER_CONFIGURATION pCurrentCfg
  35. );
  36. WBEMSTATUS
  37. FakeNlbHostDoUpdate(
  38. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  39. IN LPCWSTR szNicGuid,
  40. IN LPCWSTR szClientDescription,
  41. IN PNLB_EXTENDED_CLUSTER_CONFIGURATION pNewState,
  42. OUT UINT *pGeneration,
  43. OUT WCHAR **ppLog // free using delete operator.
  44. );
  45. WBEMSTATUS
  46. FakeNlbHostGetUpdateStatus(
  47. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  48. IN LPCWSTR szNicGuid,
  49. IN UINT Generation,
  50. OUT WBEMSTATUS *pCompletionStatus,
  51. OUT WCHAR **ppLog // free using delete operator.
  52. );
  53. WBEMSTATUS
  54. FakeNlbHostPing(
  55. IN LPCWSTR szBindString,
  56. IN UINT Timeout, // In milliseconds.
  57. OUT ULONG *pResolvedIpAddress // in network byte order.
  58. );
  59. WBEMSTATUS
  60. FakeNlbHostControlCluster(
  61. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  62. IN LPCWSTR szNicGuid,
  63. IN LPCWSTR szVip,
  64. IN DWORD *pdwPortNum,
  65. IN WLBS_OPERATION_CODES Operation,
  66. OUT DWORD *pdwOperationStatus,
  67. OUT DWORD *pdwClusterOrPortStatus,
  68. OUT DWORD *pdwHostMap
  69. );
  70. WBEMSTATUS
  71. FakeNlbHostGetClusterMembers(
  72. IN PWMI_CONNECTION_INFO pConnInfo, // NULL implies local
  73. IN LPCWSTR szNicGuid,
  74. OUT DWORD *pNumMembers,
  75. OUT NLB_CLUSTER_MEMBER_INFO **ppMembers // free using delete[]
  76. );