Added MSG struct

pull/10/head
David Hall 2018-01-20 18:01:01 -07:00
parent fac6f2cebd
commit 50d7fb69d8
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
using System;
using System.Runtime.InteropServices;
// ReSharper disable InconsistentNaming
namespace Vanara.PInvoke
{
/// <summary>Contains message information from a thread's message queue.</summary>
[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>
public IntPtr hwnd;
/// <summary>The message identifier. Applications can only use the low word; the high word is reserved by the system.</summary>
public uint message;
/// <summary>Additional information about the message. The exact meaning depends on the value of the message member.</summary>
public IntPtr wParam;
/// <summary>Additional information about the message. The exact meaning depends on the value of the message member.</summary>
public IntPtr lParam;
/// <summary>The time at which the message was posted.</summary>
public uint time;
/// <summary>The horizontal cursor position, in screen coordinates, when the message was posted.</summary>
public int pt_x;
/// <summary>The vertical cursor position, in screen coordinates, when the message was posted.</summary>
public int pt_y;
}
}