Share via


IVMGuestOS::IsHostTimeSyncEnabled property

The IsHostTimeSyncEnabled property contains TRUE if the Additions in this virtual machine should synchronize the guest's clock with the host's clock.

This property is read/write.

Syntax

HRESULT put_IsHostTimeSyncEnabled(
  [in]  VARIANT_BOOL shouldEnable
);

HRESULT get_IsHostTimeSyncEnabled(
  [out] VARIANT_BOOL *isEnabled
);

VB
VMGuestOS.IsHostTimeSyncEnabled( _
  ByVal shouldEnable, _
  ByRef isEnabled _
)

Property value

Contains vbTrue if the Additions in this virtual machine should synchronize the guest's clock with the host's clock.

This property value is read/write.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
isEnabled was not specified.
VM_E_VM_UNKNOWN
The configuration is unknown.
DISP_E_EXCEPTION
An unknown error has occurred.

Remarks

You cannot change this setting while the virtual machine is active (that is, running or in saved state).

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMGuestOS