Name

VMGetNumSharedFolders

Description

($err, $numSharedFolders) = VMGetNumSharedFolders($vmHandle);

This function returns the number of shared folders mounted in the virtual machine.

Parameters

vmHandle
Identifies a virtual machine. Call VMOpen() to create a virtual machine handle.

Return Value

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

$numSharedFolders. This number of shared folders mounted in the virtual machine referenced by $vmHandle.

Remarks

vmHandle.

Side Effects

None.

Requirements

use VMware::Vix::Simple;
use VMware::Vix::API::Constants;
since VMware Workstation 6.0

Example

my $err;
my $numSharedFolders;

($err, $numSharedFolders) = VMGetNumSharedFolders($vmHandle);
die "VMGetNumSharedFolders() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;


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