PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
system time?? real hard...!-VBForums
Results 1 to 3 of 3

Thread: system time?? real hard...!

  1. #1

    Thread Starter
    Fanatic Member wildcat_2000's Avatar
    Join Date
    Nov 2000
    Location
    Italy
    Posts
    727

    Arrow 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! <=

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    Texas
    Posts
    53
    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

  3. #3
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    Isn't this just what you want?
    VB Code:
    1. Sub Form_Load()
    2. Time = #12:00:00 AM#
    3. 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
  •  



Featured


Click Here to Expand Forum to Full Width