[DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, uint wMsg, int wParam, int lParam); IntPtr PID = FindWindow(CLASSNAME,WINNAME); SendMessage(PID, 0x0002, 0,0);
WM_CLOSE
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)