WireGuard rework for MacOS and Windows (#314)
WireGuard rework for MacOS and Windows
This commit is contained in:
parent
421a27ceae
commit
07c38e9b6c
60 changed files with 4779 additions and 434 deletions
23
client/platforms/windows/windowsutils.h
Normal file
23
client/platforms/windows/windowsutils.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef WINDOWSUTILS_H
|
||||
#define WINDOWSUTILS_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
class WindowsUtils final {
|
||||
public:
|
||||
static QString getErrorMessage();
|
||||
static QString getErrorMessage(quint32 code);
|
||||
static void windowsLog(const QString& msg);
|
||||
|
||||
// Returns the major version of Windows
|
||||
static QString windowsVersion();
|
||||
|
||||
// Force an application crash for testing
|
||||
static void forceCrash();
|
||||
};
|
||||
|
||||
#endif // WINDOWSUTILS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue