This topic has not yet been rated - Rate this topic

DIFXAPILOGCALLBACK routine

A DIFXAPILOGCALLBACK-typed function is an application-supplied callback function that an application registers with DIFxAPI by calling DIFXAPISetLogCallback. DIFxAPI calls the callback function to log events that occur during DIFxAPI operation.

Syntax

void (__cdecl* DIFXAPILOGCALLBACK) DIFXAPILOGCALLBACK;

void DIFXAPILOGCALLBACK(
  DIFXAPI_LOG EventType,
  DWORD Error,
  PCTSTR EventDescription,
  PVOID CallbackContext
)
{ ... }

Parameters

EventType

A DIFXAPI_LOG-typed enumerator that indicates the event type. The DIFXAPI_LOG enumeration is defined as follows:


typedef enum {
  DIFXAPI_SUCCESS,
  DIFXAPI_INFO,
  DIFXAPI_WARNING,
  DIFXAPI_ERROR
} DIFXAPI_LOG;


The enumeration values represent the event types that are listed in the following table.

ValueEvent type
DIFXAPI_SUCCESSA success event that logs a message that indicates an operation succeeded.
DIFXAPI_INFOAn information event that logs a message that describes the context or progress of an operation.
DIFXAPI_WARNINGA warning event that logs a message about a possible problem that is not a fatal error.
DIFXAPI_ERRORAn error event that logs a message about a fatal error.

 

Error

A DWORD value that specifies a Microsoft Win32 error code that is associated with an event, if one exists; otherwise, Error is zero.

EventDescription

A pointer to a NULL-terminated string that describes the event.

CallbackContext

A pointer to the callback context that a caller set for the callback function.

Return value

None

Remarks

To register a DIFxAPI log callback function, an application calls DIFXAPISetLogCallback and supplies a pointer to an application-supplied DIFXAPILOGCALLBACK-typed function and a pointer to an optional application-specific callback context.

For more information about DIFxAPI event logging, see Using DIFxAPI Event Logging.

Requirements

Header

Difxapi.h (include Difxapi.h)

See also

DIFXAPISetLogCallback

 

 

Send comments about this topic to Microsoft

Build date: 4/3/2012

Did you find this helpful?
(1500 characters remaining)