Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

... or pass any 64-bit integer. Windows API calls are mostly "stdcall" and use stack for parameter passing - pushing 8 bytes instead of 4 could be disasterous in many ways - especially considering that the callee cleans the stack in this case.


There is no stdcall/ccall distinction on 64-bit Windows, there is only one ABI convention that sadly uses a different set of registers for parameter passing than Linux. Only the first four parameters uses registers, the rest is passed on the stack.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: