Click to Rate and Give Feedback
MSDN
MSDN Library
Diagnostics
Windows Events
Windows Event Log
 EvtOpenChannelEnum Function

  Switch on low bandwidth view
EvtOpenChannelEnum Function

Gets a handle that you use to enumerate the list of channels that are registered on the computer.

Syntax

C++
EVT_HANDLE WINAPI EvtOpenChannelEnum(
  __in  EVT_HANDLE Session,
  __in  DWORD Flags
);

Parameters

Session [in]

A remote session handle that the EvtOpenSession function returns. Set to NULL to enumerate the channels on the local computer.

Flags [in]

Reserved. Must be zero.

Return Value

If successful, the function returns a handle to the list of channel names that are registered on the computer; otherwise, NULL. If NULL, call GetLastError function to get the error code.

Remarks

The enumeration includes all the channels that the providers that are registered on the computer defined. To enumerate the channel names, call the EvtNextChannelPath function in a loop. The names are sorted alphabetically.

You must call the EvtClose function to close the enumerator handle when done.

Examples

For an example that shows how to use this function, see Getting and Setting a Channel's Configuration Properties.

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinEvt.h
LibraryWevtapi.lib
DLLWevtapi.dll

See Also

EvtNextChannelPath
EvtOpenChannelConfig

Send comments about this topic to Microsoft

Build date: 7/2/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker