Thread: windows time change event

  1. #1
    Nate
    Guest

    windows time change event

    Hello all,

    i need to detect when the time changes in windows. specifically, i am using an jni implementation in java to communicate with a short c program. the c should detect the time-change-event and passs it along to the java via jni. got everything working, excepted for the crucial part, i haven't been able to find the windows message (assuming thats how it can be detected) that notifies of such an event.

    i am really hoping that someone knows something about this. i have been looking all over and there doesn;t seem to be anything usefull.

    thanks.

    Regards,

    Nate

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    time change? the time changes every millisecond in a sense. if you really want to get specific, time doesn't stop changing! So what are you looking for, a message every second?

    SetTimer()
    KillTimer()
    WM_TIMER
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Nate
    Guest

    Time Change

    when i say "time change" i mean that the user has changed the date/time properties in windows. like, daylight-savings or a new time-zone. i am not interested in the actual time, merely the fact that the time was changed.

    i hope i am being clearer. to reiterate, i want to know when the clock in windows is "set", not the passage of time.

    thanks.

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    oh. interesting. I'm not sure that's possible with any api but there may be some odd hacked up way of handling it. I'll see if I can find a windows message though.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  5. #5
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    nope, sorry. I don't think windows notifies you about that.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  6. #6
    Nate
    Guest

    Thanks Anyway

    FYB,

    thanks allot for taking a look into this for me. i appreciate your time. i may end up polling, but its sooooo now ideal I doubt it will work well enough to implement properly.

    thanks again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. windows time
    By pastitprogram in forum C++ Programming
    Replies: 4
    Last Post: 10-29-2008, 02:53 PM
  2. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. specific windows event
    By GuardianDevil in forum Windows Programming
    Replies: 2
    Last Post: 04-09-2004, 05:17 AM
  5. Killing someones grandparents
    By nickname_changed in forum A Brief History of Cprogramming.com
    Replies: 37
    Last Post: 09-07-2003, 07:56 AM