coco
coco
CC#
Created by coco on 8/29/2024 in #help
✅ Error code 127 (Windows)
IntPtr hKernel32 = GetModuleHandle("kernel32.dll"); if (hKernel32 == IntPtr.Zero) { Console.WriteLine("Failed to get module handle for kernel32.dll. Error: " + Marshal.GetLastWin32Error()); return false; } IntPtr loadLibraryAddr = GetProcAddress(hKernel32, "LoadLibraryA"); if (loadLibraryAddr == IntPtr.Zero) { Console.WriteLine("Failed to get address of LoadLibraryA. Error: " + Marshal.GetLastWin32Error()); return false; } It fails to get me the address of LoadLibraryA
17 replies