Windows Service: Do work at specified times (Delphi)

delphi, winapi, windows

Solution

Does this need to be a service? Could you maybe setup a scheduled task in Windows?

Problem

Just checking if there's any best practice when writing a Windows Service. The Service (Single-thread) needs to work at specified time intervals, right now I can only think of: - Use sleep(), then check the time in a loop? - Use a TTimer? Any advice?

Original source