Vanara/PInvoke/Shared/WinUser/MSG.cs

34 lines
1.2 KiB
C#
Raw Normal View History

2018-01-20 20:01:01 -05:00
using System;
using System.Runtime.InteropServices;
namespace Vanara.PInvoke
{
/// <summary>Contains message information from a thread's message queue.</summary>
2019-09-05 21:59:25 -04:00
[PInvokeData("winuser.h")]
2018-01-20 20:01:01 -05:00
[StructLayout(LayoutKind.Sequential)]
public struct MSG
{
/// <summary>
/// A handle to the window whose window procedure receives the message. This member is NULL when the message is a thread message.
/// </summary>
2018-10-26 14:24:07 -04:00
public HWND hwnd;
2018-01-20 20:01:01 -05:00
/// <summary>The message identifier. Applications can only use the low word; the high word is reserved by the system.</summary>
public uint message;
2018-01-20 20:01:01 -05:00
/// <summary>Additional information about the message. The exact meaning depends on the value of the message member.</summary>
public IntPtr wParam;
2018-01-20 20:01:01 -05:00
/// <summary>Additional information about the message. The exact meaning depends on the value of the message member.</summary>
public IntPtr lParam;
2018-01-20 20:01:01 -05:00
/// <summary>The time at which the message was posted.</summary>
public uint time;
2018-01-20 20:01:01 -05:00
/// <summary>The horizontal cursor position, in screen coordinates, when the message was posted.</summary>
public int pt_x;
2018-01-20 20:01:01 -05:00
/// <summary>The vertical cursor position, in screen coordinates, when the message was posted.</summary>
public int pt_y;
}
}