// lamp.h
// CTL_CODE(0x0022, 0x006, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_LAMP_GET_INTENSITY_COLOR 0x00220018
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_LAMP_GET_INTENSITY_COLOR control code queries the light intensity when the lamp is configured to emit color light.
#define IOCTL_LAMP_GET_INTENSITY_COLOR \
CTL_CODE(IOCTL_LAMP_BASE, 0x0006, METHOD_BUFFERED, FILE_ANY_ACCESS)
Irp->AssociatedIrp.SystemBuffer points to a LAMP_INTENSITY_COLOR structure.
Length of a LAMP_INTENSITY_COLOR structure.
Irp->AssociatedIrp.SystemBuffer is filled with the light intensity information.
IO_STACK_LOCATION.Parameters.DeviceIoControl.OutputBufferLength is the length of the buffer in bytes passed in the Irp->AssociatedIrp.SystemBuffer field.
The driver sets Irp->IoStatus.Status to STATUS_SUCCESS or the appropriate error status.
If the device has been acquired by a camera driver, the lamp driver should return an error STATUS_RESOURCE_IN_USE via Irp->IoStatus.Status.
The payload type of this IOCTL is a LAMP_INTENSITY_COLOR structure.