检测.NET中的COMCTL32版本

发布于 2024-07-05 08:11:20 字数 115 浏览 8 评论 0原文

如何确定 C# .NET 应用程序正在使用哪个版本的 comctl32.dll? 我看到的这个问题的答案通常涉及从 Windows\System 中的物理文件获取版本信息,但由于并行考虑,这不一定是实际使用的版本。

How do I determine which version of comctl32.dll is being used by a C# .NET application? The answers I've seen to this question usually involve getting version info from the physical file in Windows\System, but that isn't necessarily the version that's actually in use due to side-by-side considerations.

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

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

发布评论

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

评论(1

疧_╮線 2024-07-12 08:11:20

System.Diagnostics.Process.GetCurrentProcess.Modules 为您提供当前进程中加载​​的所有模块。 这还包括非托管 win32 dll。 您可以搜索集合并检查加载版本的 FileVersionInfo 属性。

System.Diagnostics.Process.GetCurrentProcess.Modules gives you all the modules loaded in the current process. This also includes the unmanaged win32 dlls. You can search through the collection and check the FileVersionInfo property for the loaded version.

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