EcOpenSubscriptionEnum function

The EcOpenSubscriptionEnum function is creates a subscription enumerator to enumerate all registered subscriptions on the local machine.

Syntax


EC_HANDLE WINAPI EcOpenSubscriptionEnum(
  _In_ DWORD Flags
);

Parameters

Flags [in]

Reserved. Must be 0.

Return value

If the function succeeds, it returns an handle (EC_HANDLE) to a new subscription enumerator object. Returns NULL otherwise, in which case use the GetLastError function to obtain the error code.

Examples

For example code using the EcOpenSubscriptionEnum function, see Listing Event Collector Subscriptions.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Evcoll.h

Library

Wecapi.lib

DLL

Wecapi.dll

See also

Windows Event Collector Functions

 

 

Show: