IOCTL_SYSENV_GET_VARIABLE IOCTL (ntddsysenv.h)

Gets the value of the specified system environment variables using SysEnv device.

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

A pointer to a SYSENV_VARIABLE structure that specifies the variable..

Input buffer length

The size of the SYSENV_VARIABLE structure.

Output buffer

A pointer to a SYSENV_VALUE structure that receives the value of the variable.

Output buffer length

The size of the SYSENV_VALUE structure.

Status block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.

Requirements

Requirement Value
Header ntddsysenv.h

See also

Creating IOCTL Requests in Drivers

WdfIoTargetSendInternalIoctlOthersSynchronously

WdfIoTargetSendInternalIoctlSynchronously

WdfIoTargetSendIoctlSynchronously