|
-
Apr 1st, 2004, 08:04 AM
#1
Thread Starter
Fanatic Member
system time?? real hard...!
hi all,
anyone knows HOW to force windows to UPDATE the clock according to the CMOS?? this is basically what i need.
i tried using SetSystemTimeAdjustment after turning on the SE_SYSTEMTIME_NAME priviledge, however this freezed my clock, which keeping the funny part asaide is not what i need to do. plus, this would work only in win NT/2K/XP models.
or, is there a way to read from the CMOS real time clock??
i need windows to update the clock because some debugging application i use in a server happen to freeze time and clock goes out of synch.
hope some guru out there has an answer,
cheers 2 u all,
wc.
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
-
Apr 11th, 2004, 06:20 PM
#2
Member
Here's a link for something along the lines, i dont think its exactly what your looking for but, you can tell me:
http://www.vb-helper.com/howto_set_time_from_nist.html
Goodluck
Good programming site:
*http://www.planet-source-code.com
Our CS Clan Page:
*http://h2p.inter-gamer.com/index.html
-
Apr 12th, 2004, 08:35 AM
#3
Isn't this just what you want?
VB Code:
Sub Form_Load()
Time = #12:00:00 AM#
End Sub
Whenever you set the time in Windows (and with that), I would assume it would set the CMOS and windows would just read from that..
?
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|