//
// __acrt_get_parent_window from 0x180135da4 to 0x180135e1c (120 bytes)
//
// 2 xrefs:
// > unknown_libname_70 @ 0x1801393b6
// > ??> @ 0x180203470
//
// 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 10:55:00 +0000
//
__int64 _acrt_get_parent_window()
{
__int64 (*function)(void); // rax
__int64 v1; // rbx
FARPROC v2; // rax
function = try_get_function(7u, "GetActiveWindow", (unsigned int *)&unk_1801749D8, (unsigned int *)"GetActiveWindow");
if ( !function )
return 0;
v1 = function();
if ( !v1 )
return 0;
v2 = try_get_function(0xAu, "GetLastActivePopup", (unsigned int *)"\r", (unsigned int *)"GetLastActivePopup");
if ( v2 )
return ((__int64 (__fastcall *)(__int64))v2)(v1);
else
return v1;
}