//
// sub_1800D8000 from 0x1800d8000 to 0x1800d8047 (71 bytes)
//
// 2 xrefs:
// > sub_1800D6CB0 @ 0x1800d6d33
// > ??> @ 0x1801baa64
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_1800D8000(__int64 a1)
{
HWND v1; // rax
int result; // eax
RAWINPUTDEVICE pRawInputDevices; // [rsp+20h] [rbp-18h] BYREF
v1 = *(HWND *)(a1 + 880);
*(_QWORD *)&pRawInputDevices.usUsagePage = 131073;
pRawInputDevices.hwndTarget = v1;
result = RegisterRawInputDevices(&pRawInputDevices, 1u, 0x10u);
if ( !result )
return sub_1800D9BA0(65544, "Win32: Failed to register raw input device");
return result;
}