UMDEtwUnregister function

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(void);

Parameters

This function has no parameters.

Return value

This function does not return a value.

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Umdprovider.h (include Umdprovider.h)

See also

UMDEtwRegister

 

 

Send comments about this topic to Microsoft

Mostrar:
© 2014 Microsoft