摘要:
C#在调用非托管动态库时,经常需要实时卸载动态库,本例演示如何加载、获取方法委托、卸载动态库:
[DllImport("Kernel32.dll")]
public static extern int LoadLibrary(string lpFileName);
[DllImport("Kernel32.dll")]
public static extern bool FreeLibrary(int hModule);
[DllImport("Kernel32.dll")]
public static extern IntPtr GetProcAddress(int hModule, string lpProcName); 阅读全文
posted @ 2013-01-30 14:11
赫赫小虾
阅读(3100)
评论(0)
推荐(0)
浙公网安备 33010602011771号