What kind of WINAPI, CALLBACK before the function names?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Started learning WinApi and I have found this entry:

int WINAPI ...

in the names of functions. Do not prompt, what it can mean?
by | 11 views

1 Answer

0 like 0 dislike
On x86, they are both macros for non-standard agreements call __stdcall.
On ARM they do nothing.

The calling Convention is...
• at the level of registers, we called the function;
• who cleans the stack for the caller;
• who is responsible for restoring registers, if they have changed (or there is a risk that they have changed).

stdcall — calling through the stack, right to left, for cleaning up the stack is handled by a function result in eax (rax), the function responsible for restoring the segment registers, esp and ebp, the program for the rest.

On ARM using the Convention cdecl. The same thing, but for cleaning up the stack is responsible for the programme (what is there to ARM registers, I don't know).

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
5 answers
asked Apr 12, 2019 by sddvxd
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
35,406 users