REDIVIVUS

Proposals / #1553

Mac GetActiveWindow: void* __cdecl (void) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim GetActiveWindow. It reads no args. It takes the thread state's +0x914 active window and returns it only if the handle validator 0x0002fb57 accepts it, else 0 (MOV EAX,ESI at 0x00030cf4). Callers: DefWindowProc and IPeekMessage. This matches Win32 HWND GetActiveWindow(void); it is typed void* because HWND is not in the Mac DB.

Changes 1, applied together

  1. Set prototype mac 0x00030cb2

    signatureundefined GetActiveWindow(void)→void* GetActiveWindow(void)
    conventionunknown→__cdecl