Click here to Skip to main content
15,847,077 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

Hey there,

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.

Share this answer

Would turning off redirection work?

 Answer: Nope ...

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900