SetTimer(hWnd, 0 /* id number */, 120000 /* milliseconds */, NULL);
switch(iMsg) { case WM_TIMER: if (wParam == 0) { // your stuff here } break; }