Cevap: # (CSharp) İle SQL İşlemleri
[DllImport("user32.dll", SetLastError=true)]
private static extern bool PostMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, int wParam, string lParam);
private void SendCmd(string Cmd)
{
IntPtr hwndParent = FindWindow(null,”ebenezer başlığı”);
SendMessage(FindWindowEx(hwndParent, IntPtr.Zero, “Edit”, null), 12, 0, Cmd);
PostMessage(hwndParent, 256, 13, 0);
}
SendCmd(“/notice Komut Yaz”);