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

RAWINPUTKEYBOARD (Structures)
 
.
Summary

C# Definition:

    /// <summary>
    /// Value type for raw input from a keyboard.
    /// </summary>    
    [StructLayout(LayoutKind.Sequential)]
    public struct RAWKEYBOARD
    {
        /// <summary>Scan code for key depression.</summary>
        public short MakeCode;
        /// <summary>Scan code information.</summary>
        public RawKeyboardFlags Flags;
        /// <summary>Reserved.</summary>
        public short Reserved;
        /// <summary>Virtual key code.</summary>
        public VirtualKeys VirtualKey;
        /// <summary>Corresponding window message.</summary>
        public WindowsMessages Message;
        /// <summary>Extra information.</summary>
        public int ExtraInformation;
    }

or

    /// <summary>
    /// Value type for raw input from a keyboard.
    /// </summary>    
    [StructLayout(LayoutKind.Sequential)]
    public struct RAWKEYBOARD
    {
        /// <summary>Scan code for key depression.</summary>
        public short MakeCode;
        /// <summary>Scan code information.</summary>
        public RawKeyboardFlags Flags;
        /// <summary>Reserved.</summary>
        public short Reserved;
        /// <summary>Virtual key code.</summary>
        [MarshalAs(UnmanagedType.U2)]
        public System.Windows.Forms.Keys VirtualKey;  //        <---------------------
        /// <summary>Corresponding window message.</summary>
        public WindowsMessages Message;
        /// <summary>Extra information.</summary>
        public int ExtraInformation;
    }

VB Definition:

    ''' <summary>
    ''' Value type for raw input from a keyboard.
    ''' </summary>    
    <System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)> _
    Public Structure RAWKEYBOARD
    ''' <summary>Scan code for key depression.</summary>
    Public MakeCode As Short
    ''' <summary>Scan code information.</summary>
    Public Flags As RawKeyboardFlags
    ''' <summary>Reserved.</summary>
    Public Reserved As Short
    ''' <summary>Virtual key code.</summary>
    Public VirtualKey As VirtualKeys
    ''' <summary>Corresponding window message.</summary>
    Public Message As WindowsMessages
    ''' <summary>Extra information.</summary>
    Public ExtraInformation As Integer
    End Structure
Structure RAWKEYBOARD
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation
RAWKEYBOARD 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
Edit This Page
Find References
Show Printable Version
Revisions