REDIVIVUS

Proposals / #1554

Mac GetDesktopWindow: void* __cdecl (void) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim GetDesktopWindow. It reads no args: MOV EAX,[global desktop window] / RET (0x0002ffe6). Callers keep the result: Keys_PrepareKeyMsg 0x00026e6a stores EAX into the message's hwnd field ([ESI]). This matches Win32 HWND GetDesktopWindow(void); it is typed void* because HWND is not in the Mac DB.

Changes 1, applied together

  1. Set prototype mac 0x0002ffdd

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