EcRetrySubscription function (evcoll.h)

The EcRetrySubscription function is used to retry connecting to the event source of a subscription that is not connected.

Syntax

BOOL EcRetrySubscription(
  LPCWSTR SubscriptionName,
  LPCWSTR EventSourceName,
  DWORD   Flags
);

Parameters

SubscriptionName

The name of the subscription to which to connect.

EventSourceName

The name of the event source of the subscription. This parameter is optional and can be NULL. This parameter must be NULL when the subscription is source initiated. If this parameter is NULL, the entire subscription will be retried.

Flags

Reserved. Must be NULL.

Return value

This function returns BOOL.

Remarks

To retry a subscription for all the event sources of a subscription, use the EcSaveSubscription function instead of calling EcRetrySubscription on each event source individually.

Examples

For example code using the EcRetrySubscription function, see Retrying an Event Collector Subscription.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header evcoll.h
Library Wecapi.lib
DLL Wecapi.dll

See also

Windows Event Collector Functions