Made extensive changes to the launcher to provide more control over setting up auto-start and it now saves configuration to the user's documents directory if auto-starting at login and saves to the system directory if auto-starting at boot. Replaced MapVirtualKey() with table lookup to work around that function's lack of support for extended keyboard scan codes. Added first cut at support for AltGr.
50 lines
1.4 KiB
C++
Executable file
50 lines
1.4 KiB
C++
Executable file
/*
|
|
* synergy -- mouse and keyboard sharing utility
|
|
* Copyright (C) 2002 Chris Schoeneman
|
|
*
|
|
* This package is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* found in the file COPYING that should have accompanied this file.
|
|
*
|
|
* This package is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef LAUNCHUTIL_H
|
|
#define LAUNCHUTIL_H
|
|
|
|
#include "CString.h"
|
|
|
|
#define WINDOWS_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
|
|
#define CLIENT_APP "synergyc.exe"
|
|
#define SERVER_APP "synergys.exe"
|
|
|
|
class CConfig;
|
|
|
|
// client must define this and set it before calling any function here
|
|
extern HINSTANCE s_instance;
|
|
|
|
CString getString(DWORD id);
|
|
CString getErrorString(DWORD error);
|
|
|
|
void showError(HWND hwnd, const CString& msg);
|
|
void askOkay(HWND hwnd, const CString& title,
|
|
const CString& msg);
|
|
bool askVerify(HWND hwnd, const CString& msg);
|
|
|
|
void setWindowText(HWND hwnd, const CString& msg);
|
|
CString getWindowText(HWND hwnd);
|
|
|
|
HWND getItem(HWND hwnd, int id);
|
|
void enableItem(HWND hwnd, int id, bool enabled);
|
|
|
|
CString getAppPath(const CString& appName);
|
|
|
|
bool loadConfig(CConfig& config);
|
|
bool saveConfig(const CConfig& config, bool sysOnly);
|
|
|
|
#endif
|