Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
HookWindows.h
1#ifndef CHOOKWINDOWS_H
2#define CHOOKWINDOWS_H
3
4#include "Hook.h"
5#if defined(Q_OS_WIN)
6 #include "Windows.h"
7#endif
8
9class CHookWindows : public CHook
10{
11 Q_OBJECT
12public:
13 explicit CHookWindows(QObject *parent = nullptr);
14 virtual ~CHookWindows();
15
16public:
17 virtual int RegisterKeyboard() override;
18 virtual int UnRegisterKeyboard() override;
19
20private:
21 static LRESULT CALLBACK keyboardHookProc(INT code, WPARAM wparam, LPARAM lparam);
22 HHOOK m_hKeyboard;
23};
24
25#endif // CHOOKWINDOWS_H
The class is the HOOK abstract class.
Definition Hook.h:14