IOCTL_LAMP_SET_MODE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// lamp.h

// CTL_CODE(0x0022, 0x003, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_LAMP_SET_MODE 0x0022000C
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-lamp-ioctl_lamp_set_mode)

IOCTL_LAMP_SET_MODE IOCTL

Description

The IOCTL_LAMP_SET_MODE control code sets the mode in which the lamp operates.

#define IOCTL_LAMP_SET_MODE \
    CTL_CODE(IOCTL_LAMP_BASE, 0x0003, METHOD_BUFFERED, FILE_ANY_ACCESS)

Parameters

Major code

Input buffer

Irp->AssociatedIrp.SystemBuffer points to a buffer of type LAMP_MODE.

Input buffer length

Length of a LAMP_MODE.

Output buffer

None.

Output buffer length

None.

Input/output buffer

Input/output buffer length

Status block

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.