Search code examples
device-driver

Converting Windows driver to 64 bit - can I use a 32-bit DLL?


My Windows driver has a .sys file and a .dll (which I'm guessing is the programming interface to the driver?). Anyway, I need to compile the driver to run on Windows 7 64-bit. I have downloaded the DDK and am able to compile everything, but my application still won't work with the new driver.

If the application is a 32-bit application, does the driver DLL need to be compiled as a 32-bit DLL, and the .sys file a 64-bit file? Or do the SYS and DLL files both need to be 64-bit?


Solution

  • The DLL has to be 64 bit too.

    Will try to find a reference.

    Got one

    Since a 64-bit program can't call a 32-bit Dynamic Link Library (DLL)

    This is why no 32 bit driver works on 64 bit and why they are always separate downloads