dynwatch

view tray.c @ 0:ce3c5e4c75bf

dynwatch DynDNS updater for windows
author John Tsiombikas <nuclear@siggraph.org>
date Wed, 18 May 2011 05:53:29 +0300
parents
children
line source
1 /*
2 This file is part of dynwatch, a win32 system tray applet which
3 updates automatically the dyndns entry of quake.gr.
5 Copyright (c) 2005 John Tsiombikas <nuclear@siggraph.org>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
22 #include <windows.h>
23 #include "gui.h"
24 #include "watch.h"
26 /* when this is true, the program checks periodically for
27 * connection status and updates the dynamic dns entry
28 */
29 int running;
31 int WINAPI WinMain(HINSTANCE proc_handle, HINSTANCE prev, char *args, int show) {
32 MSG msg;
34 init();
35 create_gui();
37 SetTimer(win_main, 0, 20000, 0);
39 while(GetMessage(&msg, 0, 0, 0)) {
40 TranslateMessage(&msg);
41 DispatchMessage(&msg);
42 }
44 return 0;
45 }