Condividi tramite


IOCTL_LAMP_GET_INTENSITY_COLOR IOCTL (lamp.h)

Il codice di controllo IOCTL_LAMP_GET_INTENSITY_COLOR esegue una query sull'intensità della luce quando la lampada è configurata per generare luce a colori.

#define IOCTL_LAMP_GET_INTENSITY_COLOR \
    CTL_CODE(IOCTL_LAMP_BASE, 0x0006, METHOD_BUFFERED, FILE_ANY_ACCESS)

Codice principale

IRP_MJ_DEVICE_CONTROL

Buffer di input

Irp->AssociatedIrp.SystemBuffer punta a una struttura LAMP_INTENSITY_COLOR .

Lunghezza del buffer di input

Lunghezza di una struttura LAMP_INTENSITY_COLOR .

Buffer di output

Irp->AssociatedIrp.SystemBuffer viene riempita con le informazioni sull'intensità della luce.

Lunghezza del buffer di output

IO_STACK_LOCATION.Parameters.DeviceIoControl.OutputBufferLength è la lunghezza del buffer in byte passati nel Irp->AssociatedIrp.SystemBuffer campo .

Blocco dello stato

Il driver imposta su Irp->IoStatus.StatusSTATUS_SUCCESS o sullo stato di errore appropriato.

Se il dispositivo è stato acquisito da un driver della fotocamera, il driver della lampada deve restituire un errore STATUS_RESOURCE_IN_USE tramite Irp->IoStatus.Status.

Commenti

Il tipo di payload di questo IOCTL è una struttura LAMP_INTENSITY_COLOR .

Requisiti

Requisito Valore
Intestazione lamp.h