ComponentDispatcher.RaiseThreadMessage Method (MSG)

 

Indicates that a new message is available for possible handling.

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

[SecurityCriticalAttribute]
[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.

UIPermission

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

.NET Framework
Available since 3.0
Return to top
Show: