REDIVIVUS

Proposals / #1605

Mac MACCURSOR_GetCursorPos: bool __cdecl (int32_t* pX, int32_t* pY)

checked · by KierTaylor · submitted 2026-11-08

There are two cdecl stack args. [EBP+8] and [EBP+0xc] are forwarded unchanged to the installed cursor-proc hook (CALL EAX at 0x000369b4). It returns the hook's bool, or false if no hook is set (MOVZX EAX,AL). It is called through the display-driver table slot +0x4c: GetCursorPos 0x00024c08 stores [ESP]=&pt.x, [ESP+4]=&pt.y and uses AL (MOVZX EAX,AL).

Changes 1, applied together

  1. Set prototype mac 0x00036991

    signatureundefined MACCURSOR_GetCursorPos(void)→bool MACCURSOR_GetCursorPos(int32_t* pX, int32_t* pY)
    conventionunknown→__cdecl