Required, __stdcall is not a standard call for most compilers. __cdecl is the standard default value. Incorrect call access will make your program bad in a quandary. The argument values ββare incorrect and the stack becomes unbalanced.
This is only a problem in 32-bit code, 64-bit code has only one calling convention. Whoever adds another, he will be temporarily banned from a small island in the South Atlantic for life. __stdcall is a historical accident that began with the agreement on calling pascal in DOS and 16-bit Windows, back when shaving commands from a call was important when small memory was available.
source share