MSG (Structures)
Last changed: Drarig29-93.23.131.77

.
Summary
The MSG structure contains message information from a thread's message queue.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
public struct MSG
{
    public IntPtr hwnd;
    public UInt32 message;
    public IntPtr wParam;
    public IntPtr lParam;
    public UInt32 time;
    public POINT pt;
}

VB.NET Definition:

<StructLayout(LayoutKind.Sequential)> _
Public Structure MSG
      Public hwnd As IntPtr
      Public message As Integer
      Public wParam As IntPtr
      Public lParam As IntPtr
      Public time As Integer
      Public pt As POINT
End Structure

User-Defined Types:

POINT

Notes:

None.

Alternative Managed API:

Use the System.Windows.Forms.Message struct or System.Windows.Interop.MSG struct.

Documentation
MSG on MSDN