Jump to content

W32Time Log


Recommended Posts

Guest Erik Larsson
Posted

Hi all,

 

I'm working on a server system that uses NTP/w32tm to synchronize its

clock. That part works fine for me.

 

The problem is that I need to log, in my application, when a time-sync

is done and the current offset. I also would like to log the wait

time. My solution to that was to turn on the debug log and parse that

file every time something new is added. I can then search for the

strings a need to log in my application. This thing is that I can't

parse the file in my application. When a open it in notepad it's ok.

It seems to be in Unicode. But when a try to read it with fgetws/fgets

and some Unicode conversion it will just be foobar.

 

So my question. Can a get the log information some other way? Can

someone tell my how to parse the file?

 

/Erik

  • Replies 0
  • Created
  • Last Reply

Popular Days


×
×
  • Create New...