Export (0) Print
Expand All
Expand Minimize

RemoveTraceCallback function

[Do not use this function; it may be unavailable in subsequent versions.]

The RemoveTraceCallback function stops an EventClassCallback function from receiving events for an event trace class.

Syntax


ULONG RemoveTraceCallback(
  _In_ LPCGUID pGuid
);

Parameters

pGuid [in]

Pointer to the class GUID of the event trace class for which the callback receives events. Use the same class GUID that you passed to the SetTraceCallback to begin receiving the events.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the system error codes. The following table includes some common errors and their causes.

Return codeDescription
ERROR_INVALID_PARAMETER

The pGuid parameter is NULL.

ERROR_WMI_GUID_NOT_FOUND

There is no EventClassCallback function associated with the event trace class.

 

Remarks

Consumers call this function.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Evntrace.h

Library

Sechost.lib on Windows 8.1 and Windows Server 2012 R2;
Advapi32.lib on Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Server 2008, Windows Vista, and Windows XP

DLL

Sechost.dll on Windows 8.1 and Windows Server 2012 R2;
Advapi32.dll on Windows 8, Windows Server 2012, Windows 7, Windows Server 2008 R2, Windows Server 2008, Windows Vista, and Windows XP

See also

EventClassCallback
ProcessTrace
SetTraceCallback

 

 

Community Additions

ADD
Show:
© 2015 Microsoft