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
- This function returns the number of shared folders mounted in
the virtual machine referenced by
vmHandle.
- It is not necessary to call
VMLoginInGuest()
before calling this function.
- Shared folders are not supported for the following guest operating systems:
Windows ME, Windows 98, Windows 95, Windows 3.x, and DOS.
- In this release, this function requires the virtual machine to be powered on
with VMware Tools installed.
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;