deskflow/src/lib/platform/MSWindowsUtil.h

31 lines
763 B
C
Raw Normal View History

2012-06-10 16:50:54 +00:00
/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
* SPDX-FileCopyrightText: (C) 2004 Chris Schoeneman
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
2012-06-10 16:50:54 +00:00
*/
#pragma once
#include <string>
2012-06-10 16:50:54 +00:00
#define WINDOWS_LEAN_AND_MEAN
#include <Windows.h>
2012-06-10 16:50:54 +00:00
class MSWindowsUtil
{
2012-06-10 16:50:54 +00:00
public:
//! Get message string
/*!
Gets a string for \p id from the string table of \p instance.
*/
static std::string getString(HINSTANCE instance, DWORD id);
2012-06-10 16:50:54 +00:00
//! Get error string
/*!
Gets a system error message for \p error. If the error cannot be
found return the string for \p id, replacing ${1} with \p error.
*/
static std::string getErrorString(HINSTANCE, DWORD error, DWORD id);
2012-06-10 16:50:54 +00:00
};