Collapse All
Parallels C API Reference Guide
PrlVmCfg_IsGuestSharingAutoMount Function
PrlApi.h PHT_VM_CONFIGURATION

Determines if host shared folders are mounted automatically in a given virtual machine.

Syntax
PRL_RESULT PrlVmCfg_IsGuestSharingAutoMount(
    PRL_HANDLE hVmCfg, 
    PRL_BOOL_PTR pbVmGuestSharingAutoMount
);
File
Parameters

hVmCfg
A handle of type PHT_VM_CONFIGURATION identifying the virtual machine configuration.
pbVmGuestSharingAutoMount
[out] A pointer to a variable that receives the result. PRL_TRUE indicates that shares are mounted automatically. PRL_FALSE indicates otherwise.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

If shares are mounted automatically, then shared folders will be mapped and appear in the guest OS on startup.

Parallels Tools must be installed to use this feature. To obtain the Parallels Tools status, use the PrlVm_GetToolsState function.

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