sprint 1-alpha
|
00001 /****************************************************************************** 00002 * sprint::internal::netupdate 00003 * 00004 * Copyright (C) 2005-2011 Paolo Medici <www.pmx.it> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 * 00020 *******************************************************************************/ 00021 00022 #ifndef _NET_UPDATE_H 00023 #define _NET_UPDATE_H 00024 00026 // INTERNAL HEADER USED BY PMSOFTWARES 00027 // TODO: link with -lsprint_extra -lwininet 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00034 00035 struct i18n_netupdate { 00036 const char *resource_failed; 00037 const char *new_version_avail; 00038 const char *current_version_last; 00039 }; 00040 00042 00043 BOOL GetSoftwareVersion(char *buffer, unsigned int buf_len, unsigned int soft_id); 00044 00053 BOOL CheckVersion(HWND hWnd, unsigned int soft_id, const char *cur_version); 00054 00055 #ifdef __cplusplus 00056 } 00057 #endif 00058 00059 #endif