I am writing a little program to uninstall a scanner driver. I have the program working in 32-bit Windows, but it does not work under 64-bit.
After a bit of reading the API (SetupDiCallClassInstaller) needs to be called from a 64-bit process, so I tried recompiling the program to a 64Bit version and it works.
Ideally I only want to have 1 executable, is there anyway I can do this.
I understand that a 32-bit process can not load a 64-bit DLL. Can I use COM? or something?
I have zero experience with COM :)
Can you not get hold of a 32-bit version of SetupDiCallClassInstaller?
If you can then you could just compile a single 32-bit app that will work on 32-bit and 64-bit Windows.
Would turning off redirection work?
Answer: Nope ...
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)