__stdcall function calling convention

Source: Internet
Author: User
__stdcall is a function that is modified by this keyword, whose arguments are passed from right to left through the stack (the front part of __fastcall is transmitted by Ecx,edx), and the function call is cleaned up by the callee before it is returned. This keyword is primarily seen in Microsoft Visual C, C + +. GNU C, C + + is another way to modify: __attribute__ ((stdcall)) 1 function calling convention
__stdcall is one of the function calling conventions , and the function calling convention mainly constrains two things: 1. Parameter passing order 2. The call stack cleans up common function calling conventions by WHO (calling functions or called functions): stdcall cdecl fastcall ThisCall naked Call__stdcall 1. Parameters are pressed from right to left into the stack 2. The function is called by the caller to modify the stack 3. The function name (at the compiler level) is automatically preceded by an underscore, followed by an @ symbol followed by the size of the parameter in the Win32 application, Macro Apientry,winapi, which all represent _stdcall, are very common.

__stdcall function calling convention

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.