See: x86 calling conventions.
Note, that for WinAPI calls (and callbacks) on x86 the convention is stdcall.
stdcall