Rabbit Remote Control
0.1.0-bate14
Toggle main menu visibility
Loading...
Searching...
No Matches
Src
Windows
HookWindows.h
1
// Author: Kang Lin <kl222@126.com>
2
3
#ifndef CHOOKWINDOWS_H
4
#define CHOOKWINDOWS_H
5
6
#include "Hook.h"
7
#include "Windows.h"
8
9
class
CHookWindows :
public
CHook
10
{
11
Q_OBJECT
12
public
:
13
explicit
CHookWindows(
CParameterPlugin
* pParaClient, QObject *parent =
nullptr
);
14
virtual
~CHookWindows();
15
16
protected
:
17
virtual
int
OnRegisterKeyboard()
override
;
18
virtual
int
OnUnRegisterKeyboard()
override
;
19
virtual
int
OnDisableDesktopShortcuts()
override
;
20
virtual
int
OnRestoreDesktopShortcuts()
override
;
21
22
private
:
23
static
LRESULT CALLBACK keyboardHookProc(INT code, WPARAM wparam, LPARAM lparam);
24
HHOOK m_hKeyboard;
25
26
void
DisableTaskManager(
bool
flag);
27
bool
DisableWindowsKey();
28
bool
EnableWindowsKey();
29
bool
DisableTaskManager();
30
bool
EnableTaskManager();
31
};
32
33
#endif
// CHOOKWINDOWS_H
CParameterPlugin
Global parameters of plugins.
Definition
ParameterPlugin.h:36
Author: Kang Lin (kl222@126.com)
Copyright (c) Kang Lin Studios All Rights Reserved