#define CMD_TIME (60*1000) gCmdTimerId = SetTimer(NULL,1,CMD_TIME,TimeOutFn); KillTimer(NULL, gCmdTimerId);