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

查看:357
本文介绍了如何找到第三方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天全站免登陆