INtime SDK Help
RegisterRtDependency, RegisterRtDependencyEx
INtime SDK v6 > About INtime > INtime Kernel > Distributed Systems Manager > RegisterRtDependency, RegisterRtDependencyEx

Looks up the name in the sponsor list and creates a dependency relationship to that sponsor process. The sponsor process is resident on the node identified by the parameter locSponsor.

BOOLEAN RegisterRtDependency(
   LPSTR lpszSponsorName,
   DWORD dwMilliseconds
);

BOOLEAN RegisterRtDependencyEx( LPSTR lpszSponsorName, LOCATION locSponsor, DWORD dwMilliseconds );

Parameters

lpszSponsorName
A zero-terminated string containing the name of the sponsor you want to register with.
locSponsor
The location of the sponsor you want to register with.
dwMilliseconds
Specifies the length of the time the call should wait for the sponsor to register.

Remarks

Use RegisterRtDependency to register with a sponsor on the Windows host. Use RegisterRtDependencyEx to register with a sponsor on INtime using the location parameter to identify the INtime node where the sponsor is present. Call FindRtSponsor to find the location of a sponsor process of a given name.

Return Values

TRUE
Success.
FALSE
Failure. To determine the status, call GetLastRtError

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtdsm.h rt.h rt.lib
See Also