Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

MSG (Structures)
 
.
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

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions