EcSetSubscriptionProperty function (evcoll.h)

The EcSetSubscriptionProperty function sets new values or updates existing values of a subscription. New values set through this method will not be active unless they are saved by the EcSaveSubscription method.

Syntax

BOOL EcSetSubscriptionProperty(
  [in] EC_HANDLE                   Subscription,
  [in] EC_SUBSCRIPTION_PROPERTY_ID PropertyId,
  [in] DWORD                       Flags,
  [in] PEC_VARIANT                 PropertyValue
);

Parameters

[in] Subscription

The handle to the subscription object.

[in] PropertyId

A value from the EC_SUBSCRIPTION_PROPERTY_ID enumeration that specifies which property of the subscription to set.

[in] Flags

Reserved. Must be 0.

[in] PropertyValue

The value of the property to set for the indicated subscription property.

Return value

This function returns BOOL.

Requirements

Requirement Value
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