// ntddsysenv.h
// CTL_CODE(0x0052, 0x001, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SYSENV_GET_VARIABLE 0x00520004
View the official Windows Driver Kit DDI referenceNo description available.
Gets the value of the specified system environment variables using SysEnv device.
A pointer to a SYSENV_VARIABLE structure that specifies the variable..
The size of the SYSENV_VARIABLE structure.
A pointer to a SYSENV_VALUE structure that receives the value of the variable.
The size of the SYSENV_VALUE structure.
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.
Creating IOCTL Requests in Drivers
WdfIoTargetSendInternalIoctlOthersSynchronously
WdfIoTargetSendInternalIoctlSynchronously
WdfIoTargetSendIoctlSynchronously