如何找到第三方dll的呼叫约定? [英] How to find the calling convention of a third party dll?

查看:120
本文介绍了如何找到第三方dll的呼叫约定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以解释一下如何知道一个dll的调用约定,而不必得到和处理方法名称?让我们说我们的应用程序正在加载第三方dll,为了处理它,有没有什么有效的方式来了解dll的调用约定? (__stdcall,__cdecl,__fastcall)

Could any one explain me how to get to know the calling convention of a dll without getting and processing method names? Lets say our application is loading a third party dll and in order to handle it, is there any effective ways to get to know the calling convention of a dll? (__stdcall, __cdecl, __fastcall)

推荐答案

如果符号以 _ 但没有 @ ,那么它是 __ cdecl 。如果它以 _ 开始,并且有一个 @ 它是 __ stdcall 。如果它以 @ 开始,并有另一个 @ ,它是 __ fastcall

If the symbol begins with a _ but has no @, then it's __cdecl. If it begins with _ and has a @ it's __stdcall. If it begins with @ and has another @, it's __fastcall.

来源

这篇关于如何找到第三方dll的呼叫约定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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