Advertisement
Guest User

C# Plugin frame

a guest
Sep 22nd, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using RGiesecke.DllExport;
  2.  
  3. namespace ClassLibrary1
  4. {
  5.     public class Class1
  6.     {
  7.         [DllExport("pluginload")]
  8.         public static void PluginLoad(IntPtr ptr)
  9.         {
  10.             MessageBox.Show("Hello World","C# plugin");
  11.         }
  12.  
  13.         [DllExport("pluginrun")]
  14.         public static void PluginRun(IntPtr ptr)
  15.         {
  16.             MessageBox.Show("I am running :)", "C# Plugin");
  17.         }
  18.  
  19.         [DllExport("pluginunload")]
  20.         public static void PluginUnload(IntPtr ptr)
  21.         {
  22.             MessageBox.Show("Goodbye World", "C# Plugin");
  23.         }
  24.  
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement