Name

VixVM_WriteVariable

Description

VixHandle
VixVM_WriteVariable(VixHandle vmHandle,
                    int variableType,
                    const char *valueName,
                    const char *value,
                    int options,
                    VixEventProc *callbackProc,
                    void *clientData);

This function writes variables to the virtual machine state. This includes the virtual machine configuration, environment variables in the guest, and VMware "Guest Variables".

Parameters

vmHandle
Identifies a virtual machine. Call VixVM_Open() to create a virtual machine handle.
variableType
The type of variable to read. The currently supported values are:
valueName
The name of the variable.
value
The value to be written.
options
Must be 0.
callbackProc
A callback function that will be invoked when the operation is complete.
clientData
A parameter that will be passed to the callbackProc function.

Return Value

VixHandle. A job handle that describes the state of this asynchronous operation.

Remarks

Side Effects

May change configuration or environment variables.

Requirements

vix.h, VMware Workstation 6.0

Example

See the documentation for VixVM_ReadVariable().
Copyright (C) 2007-2008 VMware, Inc. All rights reserved.