This topic has not yet been rated - Rate this topic

SHSendMessageBroadcast function

[This function is available through Windows XP and Windows Server 2003. It might be altered or unavailable in subsequent versions of Windows.]

Applies to: desktop apps only

Sends a message to all top-level windows in the system.

Syntax

LRESULT SHSendMessageBroadcast(
  __in  UINT uMsg,
  __in  WPARAM wParam,
  __in  LPARAM lParam
);

Parameters

uMsg [in]

Type: UINT

The message to send.

wParam [in]

Type: WPARAM

Additional message-specific information.

lParam [in]

Type: LPARAM

Additional message-specific information.

Return value

Type: LRESULT

The return value is not meaningful.

Remarks

SHSendMessageBroadcast is equivalent to SendMessage with HWND_BROADCAST. To avoid causing the Shell to become unresponsive in the case where there could be a window in the system that is not responding to messages, use SHSendMessageBroadcast.

SHSendMessageBroadcast is not exported by name. SHSendMessageBroadcastA is exported from Shlwapi.dll as ordinal 432. SHSendMessageBroadcastW is exported from Shlwapi.dll as ordinal 433.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Shlwapi.h

DLL

Shlwapi.dll (version 5.0 or later)

Unicode and ANSI names

SHSendMessageBroadcastW (Unicode) and SHSendMessageBroadcastA (ANSI)

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ