Name

GetNumSharedFolders

Description

HRESULT
GetNumSharedFolders([in] ICallback* jobDoneCallback,
                    [out,retval] IJob** getJob);

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

Parameters

jobDoneCallback
A callback function that will be invoked when the operation is complete.
getJob
Returns an IJob object that describes the state of this asynchronous operation.

Return Value

HRESULT

Remarks

the IVM object against which this method is invoked.

Side Effects

None.

Requirements

VixCOM.h, since VMware Workstation 6.0

Example

Dim job
Dim err
Dim results
Dim numFolders

results = Nothing

Set job = vm.GetNumSharedFolders(Nothing)
err = job.Wait(Array(VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_SHARED_FOLDER_COUNT), results)
If lib.ErrorIndicatesFailure(err) Then
   ' Handle error...
End If
numFolders = results(0)

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