DXGKCB_REPORT_DIAGNOSTIC callback function (dispmprt.h)

Implemented by the kernel mode driver to report diagnostic logging.

Syntax

DXGKCB_REPORT_DIAGNOSTIC DxgkcbReportDiagnostic;

NTSTATUS DxgkcbReportDiagnostic(
  HANDLE DeviceHandle,
  IN_PDXGK_DIAGNOSTIC_HEADER pDiagnostic
)
{...}

Parameters

DeviceHandle

A handle to a display device adapter.

pDiagnostic

Pointer to a DXGK_DIAGNOSTIC_HEADER structure that contains the diagnostic event report.

Return value

Returns the following values:

Value Description
STATUS_SUCCESS The diagnostic event is recorded successfully by the OS.
STATUS_INVALID_PARAMETER The adapter handle is incorrect or the event type is not recognized.
STATUS_BUFFER_TOO_SMALL the event size is too small for the type.
STATUS_UNSUCCESSFUL The OS was unable to process a valid event.

Other return codes may be returned as appropriate.

Requirements

Requirement Value
Header dispmprt.h