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.

 

Remarks

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Evntprov.h

Library

Advapi32.lib

DLL

Advapi32.dll

See also

EVENT_INFO_CLASS
EventRegister

 

 

Community Additions

ADD
Show:
© 2014 Microsoft