Collapse All
Parallels C API Reference Guide
PrlVmCfg_SetTimeSynchronizationEnabled Function
PHT_VM_CONFIGURATION See Also

Enables or disables the time synchronization feature in a virtual machine.

Syntax
PRL_RESULT PrlVmCfg_SetTimeSynchronizationEnabled(
    PRL_HANDLE hVmCfg, 
    PRL_BOOL bEnabled
);
File

PrlApiVm.h

Parameters

hVmCfg
A handle of type PHT_VM_CONFIGURATION identifying the virtual machine configuration.
bEnabled
Setting boolean value.
Returns

PRL_RESULT . Possible values:

PRL_ERR_INVALID_ARG - invalid handle was passed.

PRL_ERR_SUCCESS - function completed successfully.

Remarks

You can synchronize the time in a virtual machine with the time in the host OS. To do so, the time synchronization feature must be enabled using the PrlVmCfg_SetTimeSynchronizationEnabled function. The time will be synchronized at predefined time intervals. To set the time interval, use the PrlVmCfg_SetSmartGuardInterval function. This feature requires Parallels Tools installed in a virtual machine.

See Also
Links
What do you think about this topic? Send feedback!