EventUnregister function

Removes the provider's registration. You must call this function before your process exits.

Syntax

ULONG EVNTAPI EventUnregister(
  REGHANDLE RegHandle
);

Parameters

RegHandle

Registration handle returned by EventRegister.

Return Value

Returns ERROR_SUCCESS if successful.

Remarks

For private sessions, you must stop the trace (call the ControlTrace function with the ControlCode parameter set to EVENT_TRACE_CONTROL_STOP) before calling this function.

Requirements

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

See Also

EventRegister