I am writing a VC++ program for NT 4.0+. I am trying to have my program run all the time. However, it needs to be signalled at a certain time based on the INI entry. Say 18:00 in the evening on certain days. I would like my program to Wait for the time to pass by before it starts any processing or consume CPU time. I have used WaitforSingleObject before but I am not sure if I can signal this API at a certain time.
Is there an Function which allows me to do that. SOme code will be appreciated too.