EventSetInformation function

Performs operations on a registration object.

Syntax

ULONG EVNTAPI EventSetInformation(
  REGHANDLE        RegHandle,
  EVENT_INFO_CLASS InformationClass,
  PVOID            EventInformation,
  ULONG            InformationLength
);

Parameters

RegHandle

Type: REGHANDLE

Registration handle returned by EventRegister.

InformationClass

Type: EVENT_INFO_CLASS

Type of operation to be performed on the registration object.

EventInformation

Type: PVOID

The input buffer.

InformationLength

Type: ULONG

Size of the input buffer.

Return Value

Type: ULONG

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the following error codes.

Return code Description
ERROR_INVALID_PARAMETER
The parameter is incorrect. This error is returned if the RegHandle parameter is not a valid registration handle.
ERROR_NOT_SUPPORTED
The request is not supported.
Other
Use FormatMessage to obtain the message string for the returned error.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header evntprov.h
Library Advapi32.lib
DLL Advapi32.dll

See Also

EVENT_INFO_CLASS

EventRegister