Name

VixVM_EnableSharedFolders

Description

VixHandle
VixVM_EnableSharedFolders(VixHandle vmHandle,
                          Bool enabled,      
                          int options,       
                          VixEventProc *callbackProc,
                          void *clientData);

This function enables or disables all shared folders as a feature for a virtual machine.

Parameters

vmHandle
Identifies a virtual machine. Call VixVM_Open() to create a virtual machine handle.
enabled
TRUE if enabling shared folders is desired. FALSE otherwise.
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

Requirements

vix.h, since VMware Workstation 6.0, not available on Server 2.0.
Minimum Supported Guest OS: Microsoft Windows NT Series, Linux

Example

VixHandle jobHandle;
VixError err;

jobHandle = VixVM_EnableSharedFolders(vmHandle, 
                                      TRUE,
                                      0,
                                      NULL, 
                                      NULL);
err = VixJob_Wait(jobHandle, VIX_PROPERTY_NONE);
Vix_ReleaseHandle(jobHandle);
if (VIX_OK != err) {
   // handle error
}

Copyright (C) 2007-2017 VMware, Inc. All rights reserved.