Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlVmCfg_SetShareAllHostDisks Function
PHT_VM_CONFIGURATION

Enables sharing of all host disks for the specified virtual machine.

Syntax
PRL_RESULT PrlVmCfg_SetShareAllHostDisks(
    PRL_HANDLE hVmCfg, 
    PRL_BOOL bShareAllHostDisks
);
File

PrlApiVm.h

Parameters

hVmCfg
A handle of type PHT_VM_CONFIGURATION identifying the virtual machine configuration.
bShareAllHostDisks
The value to set. Specify PRL_TRUE to share all host disks to guest OS. Specify PRL_FALSE to not share them.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

When this sign switched on all host disks will be shared into guest OS. Note that host sharing should be switched on to enable this functionality. 

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

Links
© 2021 Parallels International GmbH. All rights reserved.