ComponentDispatcher.RaiseThreadMessage Method (MSG)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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.


to access any member of this class. Associated enumeration: Unrestricted

.NET Framework
Available since 3.0
Return to top