This topic has not yet been rated - Rate this topic

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

Advapi32.lib

DLL

Advapi32.dll

See also

EventClassCallback
ProcessTrace
SetTraceCallback

 

 

Send comments about this topic to Microsoft

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.