I want my application to run particular code after 1hr and so on. Its a checking some file program after a particular time period of 1hr. Then again check it after 1hr. The application starts with system startup.

Im writing it in raw winapi and how do I call a function with a gap of 1hr. Im trying from window callback function but dont think that this is the proper way.

Now Im just putting that function in WM_INITDIALOG and its just for 1 time running purpose. How do I make this function to call automatically after a halt (ie: using Sleep) of 1hr. ?