how to check if synchronization check box is checked

  • Thread starter Thread starter deepakkumar
  • Start date Start date
D

deepakkumar

hi all,
this is my first post to any newsgroup

In Win XP in Date/Time there is tab named Internet Time.
in that a check box is provided to synchronize the system time with the
server.
i want to know how do i check if this check box ix checked or not from VB.

regards,
deepak
 
Hi Deepak,

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
In the right-pane, if "Type" is set to "NoSync", then the option is unchecked.

Query for that registry value in VB.

Scripting - RegRead Method:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthregread.asp

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


hi all,
this is my first post to any newsgroup

In Win XP in Date/Time there is tab named Internet Time.
in that a check box is provided to synchronize the system time with the
server.
i want to know how do i check if this check box ix checked or not from VB.

regards,
deepak
 
Back
Top