如何能用api实现,检查某个cpu是否支持安装64位windows?

解决方案 »

  1.   

    用cpuid软件API只能获取CPU型号信息,但支持哪些特性只有你自己建数据
      

  2.   

    CPU有一个指令CPUID可以查询CPU相关信息
    CPUID指令是intel IA32架构下获得CPU信息的汇编指令,可以得到CPU类型,型号,制造商信息,商标信息,序列号,缓存等一系列CPU相关的东西。这里有C语言的读取方法介绍
    http://baike.baidu.com/view/1829765.htm其中EDX的29位表示是否支持64位指令集,以下摘自《Intel® Processor Identification
    and the CPUID Instruction》The processor supports 64-bit extensions to the
    IA-32 Architecture. For additional information
    refer to the “64-bit Extensions Technology
    Software Developers Guide” (document
    numbers 300834 and 300835) available at:
    http://developer.intel.com/technology/64bi
    textensions/