SetHeartBeat(Client As Object, Interval As Integer) As Integer

Application object

Called by a remote client as a request for regular "heartbeat" messages as an indication that the application is running. The remote clients' IDispatch interface (object handle) is provided in the Client parameter. The return value is zero (0) if the heart beat was successful, otherwise it is a negative value.

When you call the function, the application starts receiving AppHeartBeat events at the intervals specified in the Interval parameter. The argument to AppHeartBeat is the Client parameter. You can disable the events by calling this function with an Interval value of zero.

Related topics

The Application object