source: trunk/synergy/cmd/launcher/LaunchUtil.h@ 3232

Last change on this file since 3232 was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1.7 KB
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2002 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef LAUNCHUTIL_H
16#define LAUNCHUTIL_H
17
18#include "CString.h"
19
20#define WINDOWS_LEAN_AND_MEAN
21#include <windows.h>
22#include <sys/types.h>
23#include <sys/stat.h>
24
25#define CLIENT_APP "synergyc.exe"
26#define SERVER_APP "synergys.exe"
27#define CONFIG_NAME "synergy.sgc"
28
29class CConfig;
30
31// client must define this and set it before calling any function here
32extern HINSTANCE s_instance;
33
34CString getString(DWORD id);
35CString getErrorString(DWORD error);
36
37void showError(HWND hwnd, const CString& msg);
38void askOkay(HWND hwnd, const CString& title,
39 const CString& msg);
40bool askVerify(HWND hwnd, const CString& msg);
41bool isShowingDialog();
42
43void setWindowText(HWND hwnd, const CString& msg);
44CString getWindowText(HWND hwnd);
45
46HWND getItem(HWND hwnd, int id);
47void enableItem(HWND hwnd, int id, bool enabled);
48
49void setItemChecked(HWND, bool);
50bool isItemChecked(HWND);
51
52CString getAppPath(const CString& appName);
53
54bool isConfigNewer(time_t&, bool userConfig);
55bool loadConfig(CConfig& config, time_t&, bool& userConfig);
56bool saveConfig(const CConfig& config,
57 bool sysOnly, time_t&);
58
59const TCHAR* const* getSettingsPath();
60
61#endif
Note: See TracBrowser for help on using the repository browser.