I am making a C program to send AT commands to a mobile phone from my pc. In that, I want it to dial a number but after a delay of some time say 10 minutes. How should I do this(I am using WriteFile command to send the dial command ATD)? Also, during this time delay I want to be able to do something else & when the time is up, I want the program to interrupt my current task so that it can dial the given number. Please tell me how I can do this.