Collapse All
Parallels C API Reference Guide
PrlDisk_SetSharedDirectory Function
PrlDisk.h PHT_VIRTUAL_DISK See Also

Sets necessary access permissions on a directory containing a virtual disk to make the disk accessible to other users.

Syntax
PRL_RESULT PrlDisk_SetSharedDirectory(
    PRL_CONST_STR pDirectoryName
);
File
Parameters

pDirectoryName
Directory name in UTF-8 format.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid argument values.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

The function sets the read-write-execute (or 666) permission on all files contained in the directory. This makes the virtual disk files contained in the directory (and consequently the virtual disk itself) accessible to other users.

See Also
Links
Copyright © 1999-2011 Parallels Holdings, Ltd. and its affiliates. All rights reserved.
What do you think about this topic? Send feedback!