//
// __acrt_get_parent_window from 0x180135da4 to 0x180135e1c (120 bytes)
//
// 2 xrefs:
// > unknown_libname_70 @ 0x1801393b6
// > ??> @ 0x180203470
//
// 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
//
__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;
}