Attempting to call SetupDiCallClassInstaller from a program compiled in 32-bit mode does not work on 64-bit Windows.
This seems to be by design, but I would like to know the reason.
According to MSDN:
Device settings on 64-bit systems :
32- , UpdateDriverForPlugAndPlayDevices. ERROR_IN_WOW64, 32- 64- . CreateProcess ( Windows SDK), 64- . 64- UpdateDriverForPlugAndPlayDevices, FullInfPath, 64- .
, , API, ERROR_IN_WOW64, WOW64, 32- 64- API.
ERROR_IN_WOW64
32- 64- , , 64- . , 64- 64- , 32- 32- .