[DllImport("DoSomething.dll", EntryPoint = "something_dump", SetLastError = true)] private static extern void something_dump(IntPtr dumper);
When I run this DLLImport on XP machines it works fine but on vista I recieve the exception:
Unable to load DLL 'DoSomething.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
On both machines its located in the Windows/System32 directory, but for some reason vista doesn't load it.
And when I fully qualify the path on the vista machine ...DllImport("C:\WINDOWS\system32\DoSomething.dll"... It works!
Do I actually have to tell the DLLImport function on the vista machine to look in the system32 directory?