EvtSaveChannelConfig function

Saves the changes made to a channel's configuration.

Syntax


BOOL WINAPI EvtSaveChannelConfig(
  _In_ EVT_HANDLE ChannelConfig,
  _In_ DWORD      Flags
);

Parameters

ChannelConfig [in]

A handle to the channel's configuration properties that the EvtOpenChannelConfig function returns.

Flags [in]

Reserved. Must be zero.

Return value

Return code/valueDescription
TRUE

The function succeeded.

FALSE

The function failed. To get the error code, call the GetLastError function.

 

Remarks

To change a channel's configuration property, call the EvtSetChannelConfigProperty function.

You must call this function with elevated permissions; otherwise, this function returns ERROR_ACCESS_DENIED.

Examples

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WinEvt.h

Library

Wevtapi.lib

DLL

Wevtapi.dll

See also

EvtSetChannelConfigProperty

 

 

Show: