what does WINAPI stand for

前端 未结 3 1645
醉梦人生
醉梦人生 2020-12-09 05:38

I\'ve started to learn Win32 API in C. I saw that the main function is something like

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR          


        
3条回答
  •  有刺的猬
    2020-12-09 05:55

    It is "calling convention", defined as macro with #define and resolves to __stdcall.

    Read more on MSDN:

    The way the name is decorated depends on the language and how the compiler is instructed to make the function available, that is, the calling convention. The standard inter-process calling convention for Windows used by DLLs is known as the WinAPI convention. It is defined in Windows header files as WINAPI, which is in turn defined using the Win32 declarator __stdcall.

提交回复
热议问题