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.

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.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

Evntprov.h

Library

Advapi32.lib

DLL

Advapi32.dll

See also

EventRegister

 

 

Show:
© 2017 Microsoft