[DllImport("user32.dll")]
static extern bool TranslateMessage([In] ref MSG lpMsg);
None.
None.
Please add some!
public struct MSG
{
public IntPtr hwnd;
public int message;
public int wParam;
public int lParam;
public int time;
public int pt;
}
void Test(IntPtr handle)
{
MSG myMsg = new MSG();
myMsg.hwnd = handle;
myMsg.message = WM_KEYDOWN;
myMsg.wParam = (int)VK.NUMPAD0;
myMsg.lParam = 0;
TranslateMessage(myMsg);
}
Do you know one? Please contribute it!