MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / GetCursorPos_Hook

Function GetCursorPos_Hook

src/injectables/WindowCaptureHook.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static BOOL WINAPI GetCursorPos_Hook(LPPOINT lpPoint) {
70 if (gInjectedPoint) {
71 *lpPoint = gInjectedPoint->mScreenPoint;
72 return TRUE;
73 }
74 return gPFN_GetCursorPos(lpPoint);
75}
76
77static BOOL WINAPI GetPhysicalCursorPos_Hook(LPPOINT lpPoint) {
78 // TODO: test with multiple DPIs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected