XtfCaptureOutputBegin

Start capturing debug output.

Syntax

void XtfCaptureOutputBegin(
         PCWSTR address,
         XtfDebugStringCallback debugStringCallback,
         XtfDebugStringErrorCallback debugStringErrorCallback,
         PVOID context,
         PHANDLE hListen
)  

Parameters

address
Type: PCWSTR 

[in] Address of the console.

debugStringCallback
Type: XtfDebugStringCallback 

[in, optional] Optional callback for each output debug string.

debugStringErrorCallback
Type: XtfDebugStringErrorCallback 

[in, optional] Optional callback for the errors encountered.

context
Type: PVOID 

[in, optional] A pointer to an object that is passed into the callback functions. Allows each callback invocation to be associated with this XtfCaptureOutputBegin instance.

hListen
Type: PHANDLE 

[out] Handle that represents this capture session. XtfCaptureOutputEnd must be called with this handle to free resources associated with this capture session.

Return value

None.

Requirements

Header: Declared in XtfApi.h.

Library: Use XtfApi.lib.