I use the [DllImport] attribute to import the native DLL into my application, but the DLL that it loads is not in the local bin folder. It loads from another place on the system, but I cannot decide where.
It works on my dev machine, but not on a clean one.
I turned on Fusion logging, and this shows only managed assemblies.
I reset this process using Sysinternals Process Explorer and told me about it in C:\Windows\System32 , but I canβt see the file there in Windows Explorer.
It may be worth noting that I am running 64-bit Windows 7, but the DLL only supports x86, so I had to force my application to be x86. Is there some kind of redirect that changes where x86 files are downloaded?
DllImport is a custom Silicon Labs USB driver. [DllImport ("SiUSBXp.dll")]
I also used the command line to make dir si* in the System32 folder, and the file does not exist there.
Bencr source share