AppleWin/source/Windows/HookFilter.h
TomCh 1962a3c337
Switch to a static hook filter (#962, PR #964)
Remove the HookFilter.dll which had a dependency on VCRUNTIME140.dll
2021-06-09 21:48:24 +01:00

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);