在32位下,毫无疑问,如果组件注册成功,会在注册表的CLSID键下有记录;但在64位下,组件被注册在wow6432node下的CLSID键下。
   这里想问一下,64位下,查询组件是否注册是查询从注册表的CLSID键,还是wow6432node下的CLSID键??

解决方案 »

  1.   

    可以强制注册到64位的注册表中,就不存在这样的问题啦。
    By default, a 32-bit application running on WOW64 accesses the 32-bit registry view and a 64-bit application accesses the 64-bit registry view. The following flags enable 32-bit applications to access reflected keys in the 64-bit registry view and 64-bit applications to access reflected keys in the 32-bit registry view.Flag name
     Value
     Description
     
    KEY_WOW64_64KEY
     0x0100
     Access a 64-bit key from either a 32-bit or 64-bit application. Windows 2000:  This flag is not supported.
     
    KEY_WOW64_32KEY
     0x0200
     Access a 32-bit key from either a 32-bit or 64-bit application. Windows 2000:  This flag is not supported.
     These flags can be specified in the samDesired parameter of the following registry functions:·                      RegCreateKeyEx ·                      RegDeleteKeyEx ·                      RegOpenKeyEx