//
// sub_1800D9840 from 0x1800d9840 to 0x1800d9887 (71 bytes)
//
// 2 xrefs:
// > sub_1800D8640 @ 0x1800d86ee
// > ??> @ 0x1801c4b0c
//
// 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:34 +0000
//
int sub_1800D9840()
{
int result; // eax
RAWINPUTDEVICE pRawInputDevices; // [rsp+20h] [rbp-18h] BYREF
*(_DWORD *)&pRawInputDevices.usUsagePage = 131073;
pRawInputDevices.dwFlags = 1;
pRawInputDevices.hwndTarget = nullptr;
result = RegisterRawInputDevices(&pRawInputDevices, 1u, 0x10u);
if ( !result )
return sub_1800E1AF0(65544, "Win32: Failed to remove raw input device");
return result;
}