Quote Originally Posted by rags_to_riches View Post
Sigh....copying and pasting random code without understanding it is a poor idea.

When the service starts, read the date and time, calculate the difference between that time and the current time, and set a timer to expire after that many milliseconds.
Ok, but the "timer" depends on your CPU speed, no? A "millisecond" on a Pentium 2 is different than a millisecond on a Pentium 4, unless that millisecond is the one from the computer clock itself.