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
)

Parameters

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, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft