Export (0) Print
Expand All
Expand Minimize

SHSendMessageBroadcast function

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

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 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shlwapi.h

DLL

Shlwapi.dll (version 5.0 or later)

Unicode and ANSI names

SHSendMessageBroadcastW (Unicode) and SHSendMessageBroadcastA (ANSI)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft