//
// sub_1800787A0 from 0x1800787a0 to 0x18007880d (109 bytes)
//
// 2 xrefs:
// > sub_18007BBC0 @ 0x18007bbef
// > ??> @ 0x1801bea40
//
// 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:21:59 +0000
//
LRESULT __fastcall sub_1800787A0(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
LONG_PTR WindowLongPtrA; // rax
WindowLongPtrA = GetWindowLongPtrA(hWnd, -21);
if ( WindowLongPtrA )
return sub_18007C490(WindowLongPtrA, hWnd, Msg, wParam, lParam);
else
return DefWindowProcA(hWnd, Msg, wParam, lParam);
}