使用process explorer查看,找到对应的进程。

注册表的路径是Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\

使用powershell查看

[reflection.assemblyname]::GetAssemblyName("${pwd}\AssemblyTest.exe") | fl    命令中的pwd是指当前路径

https://stackoverflow.com/questions/270531/how-to-determine-if-a-net-assembly-was-built-for-x86-or-x64

PS C:\Users\clu\Downloads\Fusion++.1.2> [reflection.assemblyname]::GetAssemblyName("${pwd}\Fusion++.exe") | fl
MethodInvocationException: Exception calling "GetAssemblyName" with "1" argument(s): "Could not load file or assembly 'C:\Users\clu\Downloads\Fusion++.1.2\Fusion++.exe'. The module was expected to contain an assembly manifest."

使用visual studio自带的CorFlags

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>cd "C:\Users\clu\source\repos\Edenred\Test\AssemblyTest\bin\Debug"

C:\Users\clu\source\repos\Edenred\Test\AssemblyTest\bin\Debug>corflags AssemblyTest.exe
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.6.1055.0
Copyright (c) Microsoft Corporation. All rights reserved.

Version : v4.0.30319
CLR Header: 2.5
PE : PE32
CorFlags : 0x20003
ILONLY : 1
32BITREQ : 0
32BITPREF : 1
Signed : 0

https://stackoverflow.com/questions/18608785/how-to-interpret-the-corflags-flags

Microsoft .NET 4.5 introduced a new option, Any CPU 32-bit Preferred. In the new version of CorFlags.exe, the 32BIT flag no longer exists, instead, two new flags were added, 32BITREQ and 32BITPREF.

Somewhere based on the below explanation, we can interpret new CorFlags as follows.

CPU Architecture           PE      32BITREQ   32BITPREF
------------------------ ----- -------- ---------
x86 (32-bit) PE32 1 0
x64 (64-bit) PE32+ 0 0
Any CPU PE32 0 0
Any CPU 32-Bit Preferred PE32 0 1

C:\Users\clu\Downloads\Fusion++.1.2>corflags "Fusion++.exe"
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.8.3928.0
Copyright (c) Microsoft Corporation. All rights reserved.

corflags : error CF008 : The specified file does not have a valid managed header

C:\Users\clu\Downloads\Fusion++.1.1>corflags "Fusion++.exe"
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.8.3928.0
Copyright (c) Microsoft Corporation. All rights reserved.

Version : v4.0.30319
CLR Header: 2.5
PE : PE32
CorFlags : 0x20003
ILONLY : 1
32BITREQ : 0
32BITPREF : 1
Signed : 0

最新文章

  1. Entity Framework 基础知识走马观花
  2. 让Redis在你的系统中发挥更大作用的几点建议
  3. matlab 聚类
  4. javacript中的mvc设计模式
  5. Hadoop1.x与Hadoop2的区别
  6. CornerStone 破解 最简单的破解方法
  7. AttributeError at /home/home/ Exception Type: AttributeError at /home/home/
  8. 我也谈 AngularJS 怎么使用Directive, Service, Controller
  9. Unexpected end of input 和 Unexpected token var 和 Unexpected token ;
  10. co源码解析
  11. Java提高十六:TreeMap深入分析
  12. [CVPR 2016] Weakly Supervised Deep Detection Networks论文笔记
  13. 解决tomcat端口被占用:Port 8005 required by Tomcat v7.0 Server at localhost is already in use
  14. thinkphp 使用paginate分页搜索带参数
  15. AntDesign从入门到精通
  16. 在使用NSArray打印的时候如果遇到中文字符那么会打印出来编码。
  17. 前端工程化-webpack(babel编译ES6)
  18. 在windows右键菜单中加入自己的程序 [转载]
  19. word中公式居中编号在最右端
  20. HTML5和CSS基础

热门文章

  1. PHP文件锁定机制
  2. 巧克力王国 BZOJ 2850
  3. java多线程总结一:线程的两种创建方式及比较
  4. 标准C程序设计七---01
  5. Java 一个?格式的解决
  6. spark hbase
  7. 使用Google浏览器做真机页面调试
  8. mysqldump 把数据库备份到异地的服务器
  9. bootstrap -- col-sm-6 和 col-xs-6
  10. mac mysql重置密码