IOCTL_SYSENV_ENUM_VARIABLES - NtDoc

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

// CTL_CODE(0x0052, 0x003, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SYSENV_ENUM_VARIABLES 0x0052000C
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ntddsysenv-ioctl_sysenv_enum_variables)

IOCTL_SYSENV_ENUM_VARIABLES IOCTL

Description

Returns information about system environment variables using SysEnv device.

Parameters

Major code

Input buffer

A boolean value indicating whether values should be included.

Input buffer length

Size of BOOLEAN.

Output buffer

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.

Output buffer length

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.

Input/output buffer

Input/output buffer length

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.

See also

Creating IOCTL Requests in Drivers

WdfIoTargetSendInternalIoctlOthersSynchronously

WdfIoTargetSendInternalIoctlSynchronously

WdfIoTargetSendIoctlSynchronously