kernel32

C# GetProcAddress Returns Zero

For some reason, whenever my C# .NET 2.0 application makes a call to GetProcAddress it always returns zero. public class MyClass { internal static class UnsafeNativeMethods { [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] internal static extern IntPtr LoadLibrary(string lpFileName); ...

Faulting application <app_name>, version <version number>,faulting module kernel32.dll

Hi, I have one windows application built using C# and .net framework 2.0 and its installed on Windows Server 2003. I have tested application on my machine and it works perfectly on my machine. Only difference between two machines is that, my machine has Windows Vista OS and machine on which error occured has Windows Server 2003 OS. W...

VB.NET - Calling Kernel32.DLL's Wow64DisableWow64FsRedirection.

Looking at Microsoft's page on Wow64DisableWow64FsRedirection, I see some C code. What if you want to call this function and it's revert from VB.net? So far I have done this: <Runtime.InteropServices.DllImport("KERNEL32.DLL", EntryPoint:="Wow64DisableWow64FsRedirection")> _ Public Shared Function DisableWow64Redirection() As Boolean...