Condividi tramite


Funzione ChangerGetStatus (mcd.h)

ChangerGetStatus gestisce gli aspetti specifici del dispositivo di un IRP di controllo del dispositivo con il codice IOCTL IOCTL_CHANGER_GET_STATUS.

Sintassi

NTSTATUS ChangerGetStatus(
  [in] PDEVICE_OBJECT DeviceObject,
  [in] PIRP           Irp
);

Parametri

[in] DeviceObject

Puntatore all'oggetto dispositivo che rappresenta il modificatore.

[in] Irp

Puntatore all'IRP.

Valore restituito

ChangerGetStatus restituisce il valoreXXX STATUS_ restituito dal driver della porta di sistema. Se la memoria non è sufficiente per elaborare la richiesta o per elaborare il valoreSTATUS_ XXX restituito dal driver della porta di sistema ChangerGetStatus restituisce STATUS_INSUFFICIENT_RESOURCES.

Osservazioni

Questa routine è obbligatoria.

ChangerGetStatus indica se il modificatore è in grado di accettare le richieste.

ChangerGetStatus compila un SRB con un CDB per ottenere lo stato del modificatore (usando il comando SCSI TEST UNIT READY o non SCSI equivalente) e lo invia al driver della porta di sistema per ottenere lo stato del modificatore.

Fabbisogno

Requisito Valore
piattaforma di destinazione Desktop
intestazione mcd.h (include Mcd.h, Ntddchgr.h)
IRQL PASSIVE_LEVEL

Vedere anche

ChangerGetElementStatus

IOCTL_CHANGER_GET_STATUS