ID: Q182809
The information in this article applies to:
- Microsoft Windows 95
When an application running under Windows 95 calls BroadcastSystemMessage, the application fails with the following error:
BroadcastSystemMessageA not found in User32.dll.
The WINUSER.H header file contains the following code:
#ifdef UNICODE
#define BroadcastSystemMessage BroadcastSystemMessageW
#else
#define BroadcastSystemMessage BroadcastSystemMessageA
#endif
The error occurs under Windows 95 because BroadcastSystemMessageA is not
exported by USER32.DLL. The same code works as expected under Windows 98
and Windows NT since both BroadcastSystemMessage and
BroadcastSystemMessageA are exported by USER32.DLL.
Use the following code to call BroadcastSystemMessage instead of BroadcastSystemMessageA:
#include <windows.h>
#ifdef BroadcastSystemMessage
#undef BroadcastSystemMessage
#define BroadcastSystemMessage BroadcastSystemMessage
#endif
This problem is fixed in Windows 98 and Windows NT 4.0 and later by exporting both BroadcastSystemMessage and BroadcastSystemMessageA from USER32.DLL.
Additional query words: User32.dll
Keywords : kbGrpUser kbWinOS95 kbWndwMsg kbshell
Issue type : kbbug
Last Reviewed: January 2, 1999