PeekMessage

User-Defined Types C#:

[StructLayout(LayoutKind.Sequential)]
  public struct NativeMessage 
  {
      public IntPtr handle;
      public uint msg;
      public IntPtr wParam;
      public IntPtr lParam;
      public uint time;
      public System.Drawing.Point p;
  }

User-Defined Types VB.NET:

Public Structure NativeMessage
    Public handle As IntPtr
    Public msg As UInteger
    Public wParam As IntPtr
    Public lParam As IntPtr
    Public time As UInteger
    Public p As System.Drawing.Point
    End Structure

C# Signature:

VB.NET Signature:

Tips & Tricks 2:

Sample Code:

C# Signature:

Sample Code:

Última actualización