Jump to content

Featured Replies

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...