Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using RGiesecke.DllExport;
- namespace ClassLibrary1
- {
- public class Class1
- {
- [DllExport("pluginload")]
- public static void PluginLoad(IntPtr ptr)
- {
- MessageBox.Show("Hello World","C# plugin");
- }
- [DllExport("pluginrun")]
- public static void PluginRun(IntPtr ptr)
- {
- MessageBox.Show("I am running :)", "C# Plugin");
- }
- [DllExport("pluginunload")]
- public static void PluginUnload(IntPtr ptr)
- {
- MessageBox.Show("Goodbye World", "C# Plugin");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement