Skip to content

Latest commit

 

History

History
84 lines (64 loc) · 2.63 KB

nf-evcoll-ecsavesubscription.md

File metadata and controls

84 lines (64 loc) · 2.63 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:evcoll.EcSaveSubscription
EcSaveSubscription function (evcoll.h)
Saves subscription configuration information.
EcSaveSubscription
EcSaveSubscription function
evcoll/EcSaveSubscription
wec.ecsavesubscription
wes.ecsavesubscription
wec\ecsavesubscription.htm
WEC
41702fb8-5b39-4daa-8904-aa36de18665c
12/05/2018
EcSaveSubscription, EcSaveSubscription function, evcoll/EcSaveSubscription, wec.ecsavesubscription, wes.ecsavesubscription
evcoll.h
Windows
Windows Vista
Windows Server 2008
Wecapi.lib
Wecapi.dll
Windows
19H1
EcSaveSubscription
evcoll/EcSaveSubscription
c++
APIRef
kbSyntax
DllExport
Wecapi.dll
EcSaveSubscription

EcSaveSubscription function

-description

The EcSaveSubscription function saves subscription configuration information. This function should be called whenever new values are added or updated to the subscription by the EcSetSubscriptionProperty method. If the subscription is enabled, the subscription will be activated when it is saved.

-parameters

-param Subscription [in]

The handle to the subscription object.

-param Flags [in]

Reserved. Must be NULL.

-returns

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.

The subscription will be active only if the collector service is running. The service must be set to automatically start and run after the computer is booted.

Examples

For example code using the EcSaveSubscription function, see Creating a Collector Initiated Subscription or Creating a Source Initiated Subscription.

-see-also

Windows Event Collector Functions