(.net) 使用反射获得 dll 的 HINSTANCE

来源:互联网 发布:mac除了自带的商店下载 编辑:程序博客网 时间:2024/04/28 19:55
// use reflection to get the dll HINSTANCE
Assembly assembly = Assembly.GetExecutingAssembly();
Module current = assembly.GetModules()[0];
IntPtr module = Marshal.GetHINSTANCE(current);
原创粉丝点击