Why is the SetupDiCallClassInstaller function restricted to 64 bit programs?

后端 未结 2 599
不知归路
不知归路 2021-01-12 12:42

Attempting to call SetupDiCallClassInstaller from a program compiled in 32 bit mode fails on 64 bit Windows.

Apparently this is by design, but I\'d like to know the

2条回答
  •  长情又很酷
    2021-01-12 13:03

    If you are making that call from a 32bit process on a 64bit OS, it fails because it has to modify some registry keys in the 64bit portion of the registry. Where else if you were to make that call from a 64bit process on a 64bit OS, it would succeed likewise with 32bit process on a 32bit OS.

提交回复
热议问题