UMDEtwUnregister function (umdprovider.h)

Unregisters the event trace provider. Call this function before the user-mode driver is unloaded. After this function is called, the driver should not make any other calls to log events.

Syntax

void UMDEtwUnregister();

Return value

None

Remarks

UMDEtwUnregister is defined inline in Umdprovider.h as:

// Registration handle, returned by EventRegister and passed to EventUnregister
__declspec(selectany) REGHANDLE RegHandle = NULL;

FORCEINLINE void UMDEtwUnregister()
{
    EventUnregister(RegHandle);
}

The EventUnregister function is described in the Windows Events documentation.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Desktop
Header umdprovider.h (include Umdprovider.h)

See also

UMDEtwRegister