Collapse All
Parallels C API Reference Guide
PrlShare_Remove Function
PrlApi.h PHT_SHARE

Removes the share from the virtual machine configuration.

Syntax
PRL_RESULT PrlShare_Remove(
    PRL_HANDLE hVmShare
);
File
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
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!