ChangerPerformDiagnostics function (mcd.h)

ChangerPerformDiagnostics performs diagnostic tests on the changer device.

Syntax

NTSTATUS ChangerPerformDiagnostics(
  [in] PDEVICE_OBJECT                    DeviceObject,
       PWMI_CHANGER_PROBLEM_DEVICE_ERROR changerDeviceError
);

Parameters

[in] DeviceObject

Pointer to the device object that represents the changer.

changerDeviceError

Pointer to the buffer of type WMI_CHANGER_PROBLEM_DEVICE_ERROR in which the minidriver returns the diagnostic information.

Return value

ChangerPerformDiagnostics returns the status returned by the system port driver or one of the following values:

STATUS_SUCCESS

STATUS_INSUFFICIENT_RESOURCES

STATUS_BUFFER_TOO_SMALL

Remarks

ChangerPerformDiagnostics routine performs diagnostic tests on the changer device, and reports the problem to the caller. The kind of tests performed depends on the diagnostics support provided by the device.

Requirements

Requirement Value
Target Platform Desktop
Header mcd.h (include Mcd.h, Ntddchgr.h)

See also

CHANGER_DEVICE_PROBLEM_TYPE

WMI_CHANGER_PROBLEM_DEVICE_ERROR