XVARIABLE_NAME_AND_VALUE structure (ntddsysenv.h)

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.

Syntax

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;

Members

NextEntryOffset

The location of the next entry in the array of XVARIABLE_NAME structures reprieved by the IOCTL_SYSENV_ENUM_VARIABLES request.

ValueOffset

The value of the system environment variable.

ValueLength

The length of the value.

Attributes

Attributes of the system environment variable.

VendorGuid

The vendor GUID.

Name[ANYSIZE_ARRAY]

Name of the system environment variable.

Requirements

Requirement Value
Header ntddsysenv.h

See also

IOCTL_SYSENV_ENUM_VARIABLES

IOCTL_SYSENV_SET_VARIABLE