如何检查DLL是否使用P/Invoke(dllimport)?

发布于 2025-02-05 05:38:14 字数 39 浏览 2 评论 0原文

给定DLL,如何确保使用命令行工具(或不)使用P/Indoke?

Given a DLL, how can I make sure it does (or does not) use P/Invoke, with a command line tool?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神经大条 2025-02-12 05:38:14
ildasm /text file.dll | findstr pinvokeimpl

如果结果为 empty ,则dll (或exe)未使用pinvoke,否则 它是

nb iLDASM应安装 Visual Studio ,使用Visual Studio 开发人员命令提示时最容易致电。

ildasm /text file.dll | findstr pinvokeimpl

If the result is empty, pinvoke is not being used by the dll (or exe), otherwise it is.

N.B. ildasm should come installed with Visual Studio, and is easiest to call when using the Visual Studio Developer Command Prompt.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文