source: vendor/synergy/current/lib/arch/XArchWindows.h

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

synergy v1.3.1 sources (zip).

File size: 1.3 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 XARCHWINDOWS_H
16#define XARCHWINDOWS_H
17
18#define WIN32_LEAN_AND_MEAN
19
20#include "XArch.h"
21#include <windows.h>
22
23//! Lazy error message string evaluation for windows
24class XArchEvalWindows : public XArchEval {
25public:
26 XArchEvalWindows() : m_errno(GetLastError()) { }
27 XArchEvalWindows(DWORD err) : m_errno(err) { }
28 virtual ~XArchEvalWindows() { }
29
30 // XArchEval overrides
31 virtual XArchEval* clone() const throw();
32 virtual std::string eval() const throw();
33
34private:
35 DWORD m_errno;
36};
37
38//! Lazy error message string evaluation for winsock
39class XArchEvalWinsock : public XArchEval {
40public:
41 XArchEvalWinsock(int err) : m_errno(err) { }
42 virtual ~XArchEvalWinsock() { }
43
44 // XArchEval overrides
45 virtual XArchEval* clone() const throw();
46 virtual std::string eval() const throw();
47
48private:
49 int m_errno;
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.