// ntddsysenv.h
// CTL_CODE(0x0052, 0x003, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SYSENV_ENUM_VARIABLES 0x0052000C
View the official Windows Driver Kit DDI referenceNo description available.
Returns information about system environment variables using SysEnv device.
A boolean value indicating whether values should be included.
Size of BOOLEAN.
A pointer to a buffer that contains the system environment variable information. If values have been requested, the buffer points to an array of XVARIABLE_NAME_AND_VALUE structures. Otherwise, returns an array of XVARIABLE_NAME structures.
The location of the next entry is determined by NextEntryOffset of the XVARIABLE_NAME_AND_VALUE and XVARIABLE_NAME.
On input, the length in bytes of the output buffer. On output, the length in bytes of the returned data. If the input buffer is large enough, then this value indicates the amount of data copied into output buffer. If the input buffer is too small, then it indicates the required buffer length.
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