IOCTL_SYSENV_SET_VARIABLE - NtDoc

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

// CTL_CODE(0x0052, 0x002, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_SYSENV_SET_VARIABLE 0x00520008
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

IOCTL_SYSENV_SET_VARIABLE IOCTL

Description

Sets the value of the specified system environment variables using SysEnv device.

Parameters

Major code

Input buffer

A pointer to a XVARIABLE_NAME_AND_VALUE structure that contains the information to set.

Input buffer length

The size of the XVARIABLE_NAME_AND_VALUE structure.

Output buffer

Output 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