Skip to content

Commit

Permalink
Fea #71, 新增GetPointerDeviceRects(QT6.5支持)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Sep 14, 2024
1 parent d4a49d9 commit 9be42a7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Thunks/ext-ms-win-rtcore-ntuser-wmpointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,4 +428,30 @@
return FALSE;
}
#endif


#if (YY_Thunks_Target < __WindowsNT6_2)

// 最低受支持的客户端 Windows 8 [仅限桌面应用]
// 最低受支持的服务器 Windows Server 2012 [仅限桌面应用]
__DEFINE_THUNK(
user32,
12,
BOOL,
WINAPI,
GetPointerDeviceRects,
_In_ HANDLE _hDevice,
_Out_writes_(1) RECT* _pPointerDeviceRect,
_Out_writes_(1) RECT* _pDisplayRect
)
{
if (const auto _pfnGetPointerDeviceRects = try_get_GetPointerDeviceRects())
{
return _pfnGetPointerDeviceRects(_hDevice, _pPointerDeviceRect, _pDisplayRect);
}

SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
#endif
}

0 comments on commit 9be42a7

Please sign in to comment.