开发者

How to check whether a function in dll/lib is extern "C" in windows?

For example ObReferenceObjectByName is defined in c, so in c++ should use extern "C"

But how can I check this d开发者_开发知识库irectly in the dll/lib instead of reading docs?


Just look at the symbol name in the lib file. If the name has been mangled like C++ does with its names, it should be obvious.


You can look at the export in Dependency Walker.

Open the DLL, find the function in the middle right pane, and look at the icon. It will be C, C++, or O# (exported by ordinal only)
For more information, see Export Function List View in the help file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜