REDIVIVUS

Proposals / #1551

Mac SetCapture: void* __cdecl (void* pWindow) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim SetCapture. [EBP+8] = the new capture window, stored to the thread state +0x91c. The old one (ESI) gets WM_CAPTURECHANGED 0x215 via SendMessage 0x000295f5 (lParam = the new window) if it differs. It returns the previous capture window (MOV EAX,ESI at 0x00030c4e). This matches Win32 HWND SetCapture(HWND); it is typed void* because HWND is not in the Mac DB.

Changes 1, applied together

  1. Set prototype mac 0x00030c00

    signatureundefined SetCapture(void)→void* SetCapture(void* pWindow)
    conventionunknown→__cdecl