//
// sub_1800D9170 from 0x1800d9170 to 0x1800d91e3 (115 bytes)
//
// 5 xrefs:
// > sub_1800D8640 @ 0x1800d86cb
// > sub_1800D9730 @ 0x1800d97e3
// > sub_1800DA0D0 @ 0x1800da33f
// > sub_1800DA0D0 @ 0x1800da43c
// > ??> @ 0x1801c4adc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:33 +0000
//
BOOL __fastcall sub_1800D9170(__int64 a1)
{
BOOL result; // eax
struct tagRECT Rect; // [rsp+20h] [rbp-28h] BYREF
GetClientRect(*(HWND *)(a1 + 880), &Rect);
ClientToScreen(*(HWND *)(a1 + 880), (LPPOINT)&Rect);
ClientToScreen(*(HWND *)(a1 + 880), (LPPOINT)&Rect.right);
result = ClipCursor(&Rect);
qword_1801B6070 = a1;
return result;
}