Line | |
---|
1 | /*
|
---|
2 | * synergy -- mouse and keyboard sharing utility
|
---|
3 | * Copyright (C) 2004 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 CMSWINDOWSUTIL_H
|
---|
16 | #define CMSWINDOWSUTIL_H
|
---|
17 |
|
---|
18 | #include "CString.h"
|
---|
19 | #define WINDOWS_LEAN_AND_MEAN
|
---|
20 | #include <windows.h>
|
---|
21 |
|
---|
22 | class CMSWindowsUtil {
|
---|
23 | public:
|
---|
24 | //! Get message string
|
---|
25 | /*!
|
---|
26 | Gets a string for \p id from the string table of \p instance.
|
---|
27 | */
|
---|
28 | static CString getString(HINSTANCE instance, DWORD id);
|
---|
29 |
|
---|
30 | //! Get error string
|
---|
31 | /*!
|
---|
32 | Gets a system error message for \p error. If the error cannot be
|
---|
33 | found return the string for \p id, replacing ${1} with \p error.
|
---|
34 | */
|
---|
35 | static CString getErrorString(HINSTANCE, DWORD error, DWORD id);
|
---|
36 | };
|
---|
37 |
|
---|
38 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.