// ntddsysenv.h
typedef struct _XVARIABLE_NAME_AND_VALUE {
ULONG NextEntryOffset;
ULONG ValueOffset;
ULONG ValueLength;
ULONG Attributes;
GUID VendorGuid;
WCHAR Name[ANYSIZE_ARRAY];
} XVARIABLE_NAME_AND_VALUE, *PXVARIABLE_NAME_AND_VALUE;
View the official Windows Driver Kit DDI referenceNo description available.
Stores the name and value of a system environment variable using SysEnv device. This structure is used in the IOCTL_SYSENV_ENUM_VARIABLES and IOCTL_SYSENV_SET_VARIABLE requests.
NextEntryOffsetThe location of the next entry in the array of XVARIABLE_NAME structures reprieved by the IOCTL_SYSENV_ENUM_VARIABLES request.
ValueOffsetThe value of the system environment variable.
ValueLengthThe length of the value.
AttributesAttributes of the system environment variable.
VendorGuidThe vendor GUID.
NameName of the system environment variable.