Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlShare_Remove Function
PHT_SHARE

Removes the share from the virtual machine configuration.

Syntax
PRL_RESULT PrlShare_Remove(
    PRL_HANDLE hVmShare
);
File

PrlApiVm.h

Parameters

hVmShare
A handle of type PHT_SHARE identifying the shared folder.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

Once a share is removed from the virtual machine configuration, the folder cannot be accessed from the guest OS. Just like any other virtual machine configuration modification, this operation must be performed within the PrlVm_BeginEdit / PrlVm_Commit block.

Links
© 2021 Parallels International GmbH. All rights reserved.