AntiMicroX
Loading...
Searching...
No Matches
winextras.h
Go to the documentation of this file.
1#ifndef WINEXTRAS_H
2#define WINEXTRAS_H
3
4#include <QHash>
5#include <QObject>
6#include <QPoint>
7#include <QString>
8
9class WinExtras : public QObject
10{
12 public:
13 static QString getDisplayString(unsigned int virtualkey);
14 static unsigned int getVirtualKey(QString codestring);
15 static unsigned int correctVirtualKey(unsigned int scancode, unsigned int virtualkey);
16 static unsigned int scancodeFromVirtualKey(unsigned int virtualkey, unsigned int alias = 0);
17
18 static const unsigned int EXTENDED_FLAG;
23 static bool IsRunningAsAdmin();
24 static bool elevateAntiMicro();
25 static void disablePointerPrecision();
26 static void enablePointerPrecision();
28 static void grabCurrentPointerPrecision();
30 static bool raiseProcessPriority();
31 static QPoint getCursorPos();
32
33 protected:
34 explicit WinExtras(QObject *parent = 0);
36
41
42 signals:
43
44 public slots:
45};
46
47#endif // WINEXTRAS_H
Definition joydpadxml.h:27
Definition winextras.h:10
static bool raiseProcessPriority()
Definition winextras.cpp:486
static unsigned int correctVirtualKey(unsigned int scancode, unsigned int virtualkey)
Obtain a more specific virtual key (unsigned int) for a key grab event.
Definition winextras.cpp:164
static unsigned int scancodeFromVirtualKey(unsigned int virtualkey, unsigned int alias=0)
Convert a virtual key into the corresponding keyboard scan code.
Definition winextras.cpp:198
static const unsigned int EXTENDED_FLAG
Definition winextras.h:18
static int originalMouseAccel
Definition winextras.h:40
static void grabCurrentPointerPrecision()
Get the value of "Enhanced Pointer Precision" when the program first starts. Needed to not override s...
Definition winextras.cpp:447
static QString getDisplayString(unsigned int virtualkey)
Definition winextras.cpp:38
static unsigned int getVirtualKey(QString codestring)
Definition winextras.cpp:52
static void removeFileAssociationFromRegistry()
Definition winextras.cpp:315
static bool containsFileAssociationinRegistry()
Definition winextras.cpp:282
QHash< unsigned int, QString > knownAliasesVKStrings
Definition winextras.h:39
static void disablePointerPrecision()
Temporarily disable "Enhanced Pointer Precision".
Definition winextras.cpp:394
static QString getForegroundWindowExePath()
Check foreground window (window in focus) and obtain the corresponding exe file path.
Definition winextras.cpp:248
static QPoint getCursorPos()
Definition winextras.cpp:499
QHash< QString, unsigned int > knownAliasesX11SymVK
Definition winextras.h:38
void populateKnownAliases()
Definition winextras.cpp:63
static bool isUsingEnhancedPointerPrecision()
Used to check if the "Enhance Pointer Precision" Windows option is currently enabled.
Definition winextras.cpp:427
static void enablePointerPrecision()
If "Enhanced Pointer Precision" is currently disabled and the setting has not been changed explicitly...
Definition winextras.cpp:411
static bool IsRunningAsAdmin()
Check if the application is running with administrative privileges.
Definition winextras.cpp:372
static void writeFileAssocationToRegistry()
Definition winextras.cpp:296
static WinExtras _instance
Definition winextras.h:37
static QString getCurrentWindowText()
Get the window text of the window currently in focus.
Definition winextras.cpp:458
static bool elevateAntiMicro()
Attempt to elevate process using runas.
Definition winextras.cpp:345