Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the C language system call convention?

Shulou Source: shulou.com Published: 2022-06-02 07:45:14 10月04日 Update

In view of what the C language system call convention is, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

Common function calling conventions

Cdecl,stdcall,fastcall,thiscall,naked call

Briefly introduce HANDLE WINAPI GetStdHandle (_ In_ DWORD nStdHandle); / / WINAPI is not the type of return value, HANDLE is

The return value of a function like this, it's hard to understand why the return value of this function is so strange if we don't know that WINAP is a system call convention.

# define WINAPI _ _ stdcall

By default, our function calls follow the rule of _ _ stdcall. Of course, there are rules such as _ _ cdecl, _ _ pascal, and so on.

Using _ _ stdcall or _ _ cdecl or _ _ pascal is not particularly required in pure Windows programming.

This is the answer to the question about what the C language system call convention is. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Tags: Conventions functions systems problems languages more rules help solutions easy ugly easy content guys buddies common situations methods knowledge articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Tech Info Apple Linux macOS