Rabbit Remote Control
0.0.30
Loading...
Searching...
No Matches
Client
Windows
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
9
class
CHookWindows
:
public
CHook
10
{
11
Q_OBJECT
12
public
:
13
explicit
CHookWindows
(QObject *parent =
nullptr
);
14
virtual
~CHookWindows
();
15
16
public
:
17
virtual
int
RegisterKeyboard()
override
;
18
virtual
int
UnRegisterKeyboard()
override
;
19
20
private
:
21
static
LRESULT CALLBACK keyboardHookProc(INT code, WPARAM wparam, LPARAM lparam);
22
HHOOK m_hKeyboard;
23
};
24
25
#endif
// CHOOKWINDOWS_H
CHookWindows
Definition
HookWindows.h:10
CHook
The class is the HOOK abstract class.
Definition
Hook.h:14
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力