APIENTRY 是做什么的? [英] What does APIENTRY do?

查看:175
本文介绍了APIENTRY 是做什么的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次遇到它,在 msdn 上没有找到专门的页面.APIENTRY 是什么意思?

I encountered it first time and found no dedicated page on msdn. What does APIENTRY mean?

推荐答案

APIENTRY 是 WINAPI 的别名.

APIENTRY is an alias for WINAPI.

WINAPI 本身是用于 Windows API 调用的调用约定类型的定义,stdcall.

WINAPI itself is a definition for the type of calling convention used for windows API calls, the stdcall.

基本上这是向编译器解释在调用此函数时如何处理堆栈和参数.您通常不需要担心它,除非您将函数指针指向这些类型的函数.

Basically this is explaining to the compiler how to handle the stack and arguments when calling this function. You don't usually need to worry about it unless you are making function pointers to these types of functions.

这篇关于APIENTRY 是做什么的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆