EvtSaveChannelConfig function (winevt.h)
Saves the changes made to a channel's configuration.
Syntax
BOOL EvtSaveChannelConfig(
[in] EVT_HANDLE ChannelConfig,
[in] DWORD Flags
);
Parameters
[in] ChannelConfig
A handle to the channel's configuration properties that the EvtOpenChannelConfig function returns.
[in] Flags
Reserved. Must be zero.
Return value
Return code/value | Description |
---|---|
|
The function succeeded. |
|
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | winevt.h |
Library | Wevtapi.lib |
DLL | Wevtapi.dll |