using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BWP.WinFormControl
|
|
{
|
|
public class WinApiSendMessage
|
|
{
|
|
[DllImport("User32.dll", EntryPoint = "SendMessage")]
|
|
public static extern int SendMessage(
|
|
int hWnd, // handle to destination window
|
|
int Msg, // message
|
|
int wParam, // first message parameter
|
|
int lParam // second message parameter
|
|
);
|
|
|
|
[DllImport("User32.dll", EntryPoint = "FindWindow")]
|
|
public static extern int FindWindow(string lpClassName, string lpWindowName);
|
|
}
|
|
}
|