Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventSetInformation function

Performs operations on a registration object.

Syntax


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

Parameters

RegHandle [in]

Type: REGHANDLE

Registration handle returned by EventRegister.

InformationClass [in]

Type: EVENT_INFO_CLASS

Type of operation to be performed on the registration object.

EventInformation [in]

Type: PVOID

The input buffer.

InformationLength [in]

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 codeDescription
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 | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

Evntprov.h

Library

Advapi32.lib

DLL

Advapi32.dll

See also

EVENT_INFO_CLASS
EventRegister

 

 

Show:
© 2017 Microsoft