// use reflection to get the dll HINSTANCE
Assembly assembly = Assembly.GetExecutingAssembly();
Module current = assembly.GetModules()[0];
IntPtr module = Marshal.GetHINSTANCE(current);
// use reflection to get the dll HINSTANCE
Assembly assembly = Assembly.GetExecutingAssembly();
Module current = assembly.GetModules()[0];
IntPtr module = Marshal.GetHINSTANCE(current);