Name

RemoveSharedFolder

Description

HRESULT
RemoveSharedFolder([in] BSTR shareName,
                   [in] LONG flags,
                   [in] ICallback* jobDoneCallback,
                   [out,retval] IJob** removeJob);

This function removes a shared folder in the virtual machine.

Parameters

shareName
Specifies the guest pathname of the shared folder to delete.
flags
Must be 0.
jobDoneCallback
An ICallback instance that will be called when the operation is complete.
removeJob
Returns an IJob object that describes the state of this asynchronous operation.

Return Value

HRESULT

Remarks

Requirements

VixCOM.h, since VMware Workstation 6.0

Example

Dim job
Dim err

Set job = vm.RemoveSharedFolder("/work", 0, Nothing)
err = job.WaitWithoutResults()
If lib.ErrorIndicatesFailure(err) Then
   ' Handle the error...
End If

Set job = Nothing

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