TranslateMessage (user32)
Last changed: -200.171.175.201

.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern bool TranslateMessage([In] ref MSG lpMsg);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

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);

}

Alternative Managed API:

Do you know one? Please contribute it!

Documentation