// lamp.h
// CTL_CODE(0x0022, 0x009, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_LAMP_SET_EMITTING_LIGHT 0x00220024
View the official Windows Driver Kit DDI referenceNo description available.
The IOCTL_LAMP_SET_EMITTING_LIGHT control code turns the lamp on or off.
#define IOCTL_LAMP_SET_EMITTING_LIGHT \
CTL_CODE(IOCTL_LAMP_BASE, 0x0009, METHOD_BUFFERED, FILE_ANY_ACCESS)
Irp->AssociatedIrp.SystemBuffer points to a buffer of type BOOLEAN, with TRUE indicating a request to turn the lamp on; FALSE otherwise.
Length of a BOOLEAN.
None.
None.
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 a STATUS_RESOURCE_IN_USE error via Irp->IoStatus.Status.