Parallels Virtualization SDK
|
Enables or disables the smart time-synchronization mode in a virtual machine.
PRL_RESULT PrlVmCfg_SetTimeSyncSmartModeEnabled( PRL_HANDLE hVmCfg, PRL_BOOL bEnabled );
PrlApiVm.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle was passed.
PRL_ERR_SUCCESS - function completed successfully.
You can automatically synchronize the time in a virtual machine with the time in the OS by using the PrlVmCfg_SetTimeSynchronizationEnabled function. That functionality will keep the time in the virtual machine in a perfect synch with the time in the host OS. You can also set different time zones in the host and the guest OS and still synchronize the time. To do so, use the PrlVmCfg_SetTimeSyncSmartModeEnabled function. This feature requires Parallels Tools installed in a virtual machine.