Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
MSWindowsHook.cpp File Reference
Include dependency graph for MSWindowsHook.cpp:

Functions

static void keyboardGetState (BYTE keys[256], DWORD vkCode, bool kf_up)
static WPARAM makeKeyMsg (UINT virtKey, WCHAR wc, bool noAltGr)
static void setDeadKey (WCHAR wc[], int size, UINT flags)
static bool keyboardHookHandler (WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK keyboardLLHook (int code, WPARAM wParam, LPARAM lParam)
static bool mouseHookHandler (WPARAM wParam, int32_t x, int32_t y, int32_t data)
static LRESULT CALLBACK mouseLLHook (int code, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK getMessageHook (int code, WPARAM wParam, LPARAM lParam)

Variables

static const char * g_name = "dfwhook"
static DWORD g_processID = 0
static DWORD g_threadID = 0
static HHOOK g_getMessage = nullptr
static HHOOK g_keyboardLL = nullptr
static HHOOK g_mouseLL = nullptr
static bool g_screenSaver = false
static EHookMode g_mode = kHOOK_DISABLE
static uint32_t g_zoneSides = 0
static int32_t g_zoneSize = 0
static int32_t g_xScreen = 0
static int32_t g_yScreen = 0
static int32_t g_wScreen = 0
static int32_t g_hScreen = 0
static WPARAM g_deadVirtKey = 0
static WPARAM g_deadRelease = 0
static LPARAM g_deadLParam = 0
static BYTE g_deadKeyState [256] = {0}
static BYTE g_keyState [256] = {0}
static DWORD g_hookThread = 0
static bool g_fakeServerInput = false
static BOOL g_isPrimary = TRUE

Function Documentation

◆ getMessageHook()

LRESULT CALLBACK getMessageHook ( int code,
WPARAM wParam,
LPARAM lParam )
static

◆ keyboardGetState()

void keyboardGetState ( BYTE keys[256],
DWORD vkCode,
bool kf_up )
static

◆ keyboardHookHandler()

bool keyboardHookHandler ( WPARAM wParam,
LPARAM lParam )
static

◆ keyboardLLHook()

LRESULT CALLBACK keyboardLLHook ( int code,
WPARAM wParam,
LPARAM lParam )
static

◆ makeKeyMsg()

WPARAM makeKeyMsg ( UINT virtKey,
WCHAR wc,
bool noAltGr )
static

◆ mouseHookHandler()

bool mouseHookHandler ( WPARAM wParam,
int32_t x,
int32_t y,
int32_t data )
static

◆ mouseLLHook()

LRESULT CALLBACK mouseLLHook ( int code,
WPARAM wParam,
LPARAM lParam )
static

◆ setDeadKey()

void setDeadKey ( WCHAR wc[],
int size,
UINT flags )
static

Variable Documentation

◆ g_deadKeyState

BYTE g_deadKeyState[256] = {0}
static

◆ g_deadLParam

LPARAM g_deadLParam = 0
static

◆ g_deadRelease

WPARAM g_deadRelease = 0
static

◆ g_deadVirtKey

WPARAM g_deadVirtKey = 0
static

◆ g_fakeServerInput

bool g_fakeServerInput = false
static

◆ g_getMessage

HHOOK g_getMessage = nullptr
static

◆ g_hookThread

DWORD g_hookThread = 0
static

◆ g_hScreen

int32_t g_hScreen = 0
static

◆ g_isPrimary

BOOL g_isPrimary = TRUE
static

◆ g_keyboardLL

HHOOK g_keyboardLL = nullptr
static

◆ g_keyState

BYTE g_keyState[256] = {0}
static

◆ g_mode

EHookMode g_mode = kHOOK_DISABLE
static

◆ g_mouseLL

HHOOK g_mouseLL = nullptr
static

◆ g_name

const char* g_name = "dfwhook"
static

◆ g_processID

DWORD g_processID = 0
static

◆ g_screenSaver

bool g_screenSaver = false
static

◆ g_threadID

DWORD g_threadID = 0
static

◆ g_wScreen

int32_t g_wScreen = 0
static

◆ g_xScreen

int32_t g_xScreen = 0
static

◆ g_yScreen

int32_t g_yScreen = 0
static

◆ g_zoneSides

uint32_t g_zoneSides = 0
static

◆ g_zoneSize

int32_t g_zoneSize = 0
static