User32TranslateMessage 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", ExactSpelling = true)]
public static bool TranslateMessage(
out NativeMessage refMsg
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Function TranslateMessage (
<OutAttribute> ByRef refMsg As NativeMessage
) As Boolean
Dim refMsg As NativeMessage
Dim returnValue As Boolean
returnValue = User32.TranslateMessage(refMsg)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static bool TranslateMessage(
[InAttribute] [OutAttribute] NativeMessage% refMsg
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member TranslateMessage :
refMsg : NativeMessage byref -> bool
No code example is currently available or this language may not be supported.
- refMsg NativeMessage
-
A pointer to a structure that contains message information retrieved from the calling thread's message queue by using the
GetMessage(NativeMessage, IntPtr, UInt32, UInt32) or PeekMessage(NativeMessage, IntPtr, UInt32, UInt32, PeekMessageFlags) function.
Boolean
If the message is translated (that is, a character message is posted to the thread's message queue),
the return value is
.
f the message is
WM_KeyDown,
WM_KeyUp,
WM_SysKeyDown, or
WM_SysKeyUp,
the return value is
, regardless of the translation.
If the message is not translated (that is, a character message is not posted to the thread's message queue),
the return value is
.