Name

VMEnableSharedFolders

Description

$err = VMEnableSharedFolders($vmHandle,
                             $enabled,
                             $options);

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

Parameters

vmHandle
Identifies a virtual machine. Call VMOpen() to create a virtual machine handle.
enabled
TRUE if enabling shared folders is desired. FALSE otherwise.
options
Must be 0.

Return Value

$err. The error code returned by the operation. For returned values, see Topics > Error Codes.

Remarks

Side Effects

Requirements

use VMware::Vix::Simple;
use VMware::Vix::API::Constants;
since VMware Workstation 6.0
Minimum Supported Guest OS: Microsoft Windows NT Series, Linux

Example

my $err;

$err = VMEnableSharedFolders($vmHandle, 1, 0);


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