IClusCfgResourcePreCreate::SetDependency method

[This method is available for use only in Windows Server 2003.]

Adds a dependency to a resource being configured by IClusCfgManagedResourceCfg.

Syntax

HRESULT SetDependency(
  [in] LPCLSID          pclsidDepResTypeIn,
  [in] EDependencyFlags dflagIn
);

Parameters

  • pclsidDepResTypeIn [in]
    CLSID of the type of resource on which a resource is requesting a dependency. ClusCfgGuids.h defines the following CLSIDs for the cluster resource types.

    CLSID Meaning
    RESTYPE_ClusterIPAddress

    Core IP Address

    RESTYPE_ClusterNetName

    Core Network Name

    RESTYPE_ClusterQuorum

    Core Physical Disk

    RESTYPE_DHCPService

    DHCP Service

    RESTYPE_DTC

    DTC

    RESTYPE_FileShare

    File Share

    RESTYPE_GenericApplication

    Generic Application

    RESTYPE_GenericScript

    Generic Script

    RESTYPE_GenericService

    Generic Service

    RESTYPE_IPAddress

    IP Address

    RESTYPE_LocalQuorum

    Local Quorum

    RESTYPE_MajorityNodeSet

    Majority Node Set

    RESTYPE_NetworkName

    Network Name

    RESTYPE_PhysicalDisk

    Physical Disk

    RESTYPE_PrintSpooler

    Print Spooler

    RESTYPE_WINSService

    WINS Service

     

  • dflagIn [in]
    Flag that modifies the dependency relationship. The following table shows the possible values.

    Value Meaning
    dfShared

    The dependent resource can be shared.

    dfExclusive

    The dependent resource cannot be shared.

     

Return value

If the method succeeds, it returns S_OK.

Any other HRESULT value indicates that the call failed.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003

End of server support

Windows Server 2003

IDL

ClusCfgServer.idl

DLL

ClCfgSrv.dll

IID

IID_IClusCfgResourcePreCreate is defined as 4240F6A1-9D49-427e-8F3D-09384E1F59E4

See also

IClusCfgResourcePreCreate