Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using System.Diagnostics;
  11. using System.Runtime.InteropServices;
  12.  
  13. namespace TestMaestroInject
  14. {
  15.     public partial class Form1 : Form
  16.     {
  17.         [DllImport("RemoteChatMaestro.dll", EntryPoint = "?SendMessage@@YA_NPAD0@Z", CallingConvention = CallingConvention.Cdecl)]
  18.         public static extern bool SendMessage(String name, String message);
  19.  
  20.         public Form1()
  21.         {
  22.             InitializeComponent();
  23.         }
  24.  
  25.         private void button1_Click(object sender, EventArgs e)
  26.         {
  27.             SendMessage("TEST", "MESSAGE");
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement