User32KeybdEvent(Byte, Byte, KeybdEventFlags, UIntPtr) Method
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", EntryPoint = "keybd_event", SetLastError = true)]
public static void KeybdEvent(
byte vkey,
byte scanCode,
KeybdEventFlags flags,
UIntPtr extraInfo
)
<DllImportAttribute("User32.dll", EntryPoint := "keybd_event", SetLastError := true>]
Public Shared Sub KeybdEvent (
vkey As Byte,
scanCode As Byte,
flags As KeybdEventFlags,
extraInfo As UIntPtr
)
Dim vkey As Byte
Dim scanCode As Byte
Dim flags As KeybdEventFlags
Dim extraInfo As UIntPtr
User32.KeybdEvent(vkey, scanCode, flags,
extraInfo)
public:
[DllImportAttribute(L"User32.dll", EntryPoint = L"keybd_event", SetLastError = true)]
static void KeybdEvent(
unsigned char vkey,
unsigned char scanCode,
KeybdEventFlags flags,
UIntPtr extraInfo
)
[<DllImportAttribute("User32.dll", EntryPoint = "keybd_event", SetLastError = true)>]
static member KeybdEvent :
vkey : byte *
scanCode : byte *
flags : KeybdEventFlags *
extraInfo : UIntPtr -> unit
No code example is currently available or this language may not be supported.
Parameters
- vkey Byte
-
A virtual-key code.
- scanCode Byte
-
A hardware scan code for the key.
- flags KeybdEventFlags
-
Controls various aspects of function operation.
- extraInfo UIntPtr
-
An additional value associated with the key stroke.