Deskflow 1.27.0.29
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
MSWindowsHook Class Reference

Loads and provides functions for the Windows hook. More...

#include <MSWindowsHook.h>

Public Member Functions

 MSWindowsHook ()=default
 ~MSWindowsHook ()
void loadLibrary ()
int init (DWORD threadID)
int cleanup ()
void setSides (uint32_t sides)
uint32_t getSides ()
void setZone (int32_t x, int32_t y, int32_t w, int32_t h, int32_t jumpZoneSize)
void setMode (EHookMode mode)

Static Public Member Functions

static bool getPhysicalKeyState (BYTE keys[kVirtualKeyCount])
 Copy the hook's physical key state; false until it has observed an event.
static EHookResult install ()
static int uninstall ()
static int installScreenSaver ()
static int uninstallScreenSaver ()

Static Public Attributes

static constexpr int kVirtualKeyCount = 256

Detailed Description

Loads and provides functions for the Windows hook.

Constructor & Destructor Documentation

◆ MSWindowsHook()

MSWindowsHook::MSWindowsHook ( )
default

◆ ~MSWindowsHook()

MSWindowsHook::~MSWindowsHook ( )

Member Function Documentation

◆ cleanup()

int MSWindowsHook::cleanup ( )

◆ getPhysicalKeyState()

bool MSWindowsHook::getPhysicalKeyState ( BYTE keys[kVirtualKeyCount])
static

Copy the hook's physical key state; false until it has observed an event.

◆ getSides()

uint32_t MSWindowsHook::getSides ( )

◆ init()

int MSWindowsHook::init ( DWORD threadID)

◆ install()

EHookResult MSWindowsHook::install ( )
static

◆ installScreenSaver()

int MSWindowsHook::installScreenSaver ( )
static

◆ loadLibrary()

void MSWindowsHook::loadLibrary ( )

◆ setMode()

void MSWindowsHook::setMode ( EHookMode mode)

◆ setSides()

void MSWindowsHook::setSides ( uint32_t sides)

◆ setZone()

void MSWindowsHook::setZone ( int32_t x,
int32_t y,
int32_t w,
int32_t h,
int32_t jumpZoneSize )

◆ uninstall()

int MSWindowsHook::uninstall ( )
static

◆ uninstallScreenSaver()

int MSWindowsHook::uninstallScreenSaver ( )
static

Member Data Documentation

◆ kVirtualKeyCount

int MSWindowsHook::kVirtualKeyCount = 256
staticconstexpr

The documentation for this class was generated from the following files: