How to find the calling convention of a third party dll?

c++, dll

Solution

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`.

source

Problem

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)

Original source