I have been looking for information on the official microsoft website and I understand that it is used for function calls and to clean the stack of the stack if I am not mistaken but what is the benefit of this?
I have been looking for information on the official microsoft website and I understand that it is used for function calls and to clean the stack of the stack if I am not mistaken but what is the benefit of this?
I have been looking for information on the official Microsoft website and I understand that it is used for function calls and to clean the stack of the stack if I am not mistaken.
You're not wrong, but you've stayed with the form without getting to the bottom:
__stdcall
The call convention
__stdcall
is used to call functions of the Win32 API.
The official page indicates that it is a calling convention , the call conventions tell us:
Implementations of those points can vary greatly between call conventions, giving rise to many different and incompatible conventions even among compilers; therefore (in general) to follow a standard model, certain call conventions are applied in the functions that are published in APIs or libraries.
In the case of Microsoft compilers, the default calling convention is __stdcall
, but there are other conventions:
__cdecl
. __fastcall
. __thiscall
. __vectorcall
.