Export (0) Print
Expand All

ComponentDispatcher.RaiseThreadMessage Method

Indicates that a new message is available for possible handling.

Namespace:  System.Windows.Interop
Assembly:  WindowsBase (in WindowsBase.dll)

[UIPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public static bool RaiseThreadMessage(
	ref MSG msg


Type: System.Windows.Interop.MSG

The message and its associated data.

Return Value

Type: System.Boolean
true, if one of the modules listening to the message loop processed the message. The owner of the message loop should ignore the message. false, if the message was not processed. In this case, the owner of the message pump should call the Win32 function TranslateMessage followed by DispatchMessage

The owner of the message pump should call this method for every keyboard message.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

© 2015 Microsoft