c#编程语言,win7下使用Kernel32的LoadLibrary方法载入DLL失败,如何解决?

2025-02-24 02:10:31
推荐回答(2个)
回答1:

[DllImportAttribute("kernel32.dll", EntryPoint = "ReadProcessMemory")]
public static extern bool ReadProcessMemory
(
IntPtr hProcess,
IntPtr lpBaseAddress,
IntPtr lpBuffer,
int nSize,
IntPtr lpNumberOfBytesRead
);
这是我用的读写内存的一个例子

回答2:

是不是权限级别不够,以管理员身份运行你的程序试试!