Source code of Windows XP (NT5)
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.

62 lines
2.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // ClusterUtils.h
  7. //
  8. // Description:
  9. // This file contains the declaration of the ClusterUtils
  10. // functions.
  11. //
  12. //
  13. // Documentation:
  14. //
  15. // Implementation Files:
  16. // ClusterUtils.cpp
  17. //
  18. // Maintained By:
  19. //
  20. //////////////////////////////////////////////////////////////////////////////
  21. #pragma once
  22. //
  23. // Cluster API Functions.
  24. //
  25. HRESULT HrIsCoreResource( HRESOURCE hResIn );
  26. HRESULT HrIsResourceOfType( HRESOURCE hResIn, const WCHAR * pszResourceTypeIn );
  27. HRESULT HrGetIPAddressInfo( HRESOURCE hResIn, ULONG * pulIPAddress, ULONG * pulSubnetMask );
  28. HRESULT HrLoadCredentials( BSTR bstrMachine, IClusCfgSetCredentials * piCCSC );
  29. HRESULT HrGetNodeNameHostingResource( HCLUSTER hClusterIn, HRESOURCE hResIn, BSTR * pbstrNameOut );
  30. HRESULT HrGetNodeNameHostingCluster( HCLUSTER hClusterIn, BSTR * pbstrNodeName );
  31. HRESULT HrGetIPAddressOfCluster( HCLUSTER hClusterIn, ULONG * pulIPAddress, ULONG * pulSubnetMask, BSTR * pbstrNetworkName );
  32. HRESULT HrGetDependentIPAddressInfo( HCLUSTER hClusterIn, HRESOURCE hResIn, ULONG * pulIPAddress, ULONG * pulNetworkMask, BSTR * pbstrNetworkName );
  33. HRESULT HrGetNetworkOfCluster( HCLUSTER hClusterIn, BSTR * pbstrNetworkName );
  34. HRESULT HrGetSCSIInfo( HRESOURCE hResIn, CLUS_SCSI_ADDRESS * pCSAOut, DWORD * pdwSignatureOut, DWORD * pdwDiskNumberOut );
  35. HRESULT HrGetClusterInformation( HCLUSTER hClusterIn, BSTR * pbstrClusterNameOut, CLUSTERVERSIONINFO * pcviOut );
  36. HRESULT HrGetClusterResourceState(
  37. HRESOURCE hResourceIn
  38. , BSTR * pbstrNodeNameOut
  39. , BSTR * pbstrGroupNameOut
  40. , CLUSTER_RESOURCE_STATE * pcrsStateOut
  41. );
  42. HRESULT
  43. HrGetClusterQuorumResource(
  44. HCLUSTER hClusterIn
  45. , BSTR * pbstrResourceNameOut
  46. , BSTR * pbstrDeviceNameOut
  47. , DWORD * pdwMaxQuorumLogSizeOut
  48. );
  49. //
  50. // String manipulation functions.
  51. //
  52. HRESULT HrSeparateDomainAndName( BSTR bstrNameIn, BSTR * pbstrDomainOut, BSTR * pbstrNameOut );
  53. HRESULT HrAppendDomainToName( BSTR bstrNameIn, BSTR bstrDomainIn, BSTR * pbstrDomainNameOut );