Export (0) Print
Expand All
Expand Minimize

EventUnregister function

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

Syntax


ULONG EventUnregister(
  _In_  REGHANDLE RegHandle
);

Parameters

RegHandle [in]

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.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Evntprov.h

Library

Advapi32.lib

DLL

Advapi32.dll

See also

EventRegister

 

 

Community Additions

ADD
Show:
© 2014 Microsoft