mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-22 09:30:15 +00:00
1962a3c337
Remove the HookFilter.dll which had a dependency on VCRUNTIME140.dll
39 lines
696 B
C++
39 lines
696 B
C++
#pragma once
|
|
|
|
class HookFilter
|
|
{
|
|
public:
|
|
HookFilter()
|
|
{
|
|
m_hFrameWindow = (HWND)0;
|
|
m_bHookAltTab = false;
|
|
m_bHookAltGrControl = false;
|
|
|
|
m_hhook = 0;
|
|
m_hHookThread = NULL;
|
|
m_HookThreadId = 0;
|
|
}
|
|
~HookFilter()
|
|
{
|
|
}
|
|
|
|
bool InitHookThread(void);
|
|
void UninitHookThread(void);
|
|
|
|
private:
|
|
static LRESULT CALLBACK LowLevelKeyboardProc(_In_ int nCode, _In_ WPARAM wParam, _In_ LPARAM lParam);
|
|
bool HookFilterForKeyboard(void);
|
|
void UnhookFilterForKeyboard(void);
|
|
static DWORD WINAPI HookThread(LPVOID lpParameter);
|
|
|
|
HWND m_hFrameWindow;
|
|
bool m_bHookAltTab;
|
|
bool m_bHookAltGrControl;
|
|
|
|
HHOOK m_hhook;
|
|
HANDLE m_hHookThread;
|
|
DWORD m_HookThreadId;
|
|
};
|
|
|
|
HookFilter& GetHookFilter(void);
|