//
// sub_1800E2B50 from 0x1800e2b50 to 0x1800e2c4a (250 bytes)
//
// 2 xrefs:
// > sub_1800D91F0 @ 0x1800d9475
// > ??> @ 0x1801c52b0
//
// 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:37 +0000
//
int __fastcall sub_1800E2B50(__int64 a1, float *a2, float *a3)
{
int result; // eax
HDC DC; // rbx
int DeviceCaps; // [rsp+38h] [rbp+10h] BYREF
int v9; // [rsp+40h] [rbp+18h] BYREF
if ( a2 )
*a2 = 0.0;
if ( a3 )
*a3 = 0.0;
if ( sub_1800E1CB0(6u, 3u, 0) )
{
result = GetDpiForMonitor(a1, 0, &DeviceCaps, &v9);
if ( result )
return (unsigned int)sub_1800DB260(0x10008u, "Win32: Failed to query monitor DPI");
}
else
{
DC = GetDC(nullptr);
DeviceCaps = GetDeviceCaps(DC, 88);
v9 = GetDeviceCaps(DC, 90);
result = ReleaseDC(nullptr, DC);
}
if ( a2 )
{
result = DeviceCaps;
*a2 = (float)DeviceCaps / 96.0;
}
if ( a3 )
{
result = v9;
*a3 = (float)v9 / 96.0;
}
return result;
}