REDIVIVUS

Proposals / #1544

Mac ExitProcess: void __cdecl (uint32_t nExitCode) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim ExitProcess. If a global exit hook is set it tail-JMPs to it with the caller's stack args intact (JMP EAX at 0x0002a439); otherwise it calls ExitToShell 0x0030ae2c and does not return. Callers pass one arg, e.g. SErrDisplayError 0x000106da stores [ESP]=[EBP+0x1c] (the exit code). This matches Win32 void ExitProcess(UINT).

Changes 1, applied together

  1. Set prototype mac 0x0002a41f

    signatureundefined ExitProcess(void)→void ExitProcess(uint32_t nExitCode)
    conventionunknown→__cdecl