#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "wine/test.h"
Go to the source code of this file.
◆ PBROADCAST
◆ PBROADCASTEX
◆ init_procs()
Definition at line 53 of file broadcast.c.
54{
56
58
69
72
78}
static LRESULT WINAPI main_window_procA(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventA(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCSTR lpName OPTIONAL)
HGDIOBJ WINAPI GetStockObject(_In_ int)
HWND WINAPI CreateWindowExA(_In_ DWORD dwExStyle, _In_opt_ LPCSTR lpClassName, _In_opt_ LPCSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
Referenced by START_TEST().
◆ main_window_procA()
Definition at line 36 of file broadcast.c.
37{
39 {
40 trace(
"main_window_procA: Sleeping for %lu ms\n",
wparam);
42 {
45 }
46 trace(
"main_window_procA: Returning WM_NULL with parameter %08lx\n",
lparam);
48 }
49
51}
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
BOOL WINAPI DECLSPEC_HOTPATCH SetEvent(IN HANDLE hEvent)
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by init_procs().
◆ START_TEST()
Definition at line 204 of file broadcast.c.
205{
207 return;
208
209 trace(
"Running BroadcastSystemMessageA tests\n");
211
212 trace(
"Running BroadcastSystemMessageW tests\n");
214
215 trace(
"Running BroadcastSystemMessageExA tests\n");
217
218 trace(
"Running BroadcastSystemMessageExW tests\n");
220}
static BOOL init_procs(void)
static void test_parametersEx(PBROADCASTEX broadcastex)
static void test_parameters(void)
LONG WINAPI BroadcastSystemMessageExW(DWORD dwflags, LPDWORD lpdwRecipients, UINT uiMessage, WPARAM wParam, LPARAM lParam, PBSMINFO pBSMInfo)
LONG WINAPI BroadcastSystemMessageA(DWORD dwFlags, LPDWORD lpdwRecipients, UINT uiMessage, WPARAM wParam, LPARAM lParam)
LONG WINAPI BroadcastSystemMessageExA(DWORD dwflags, LPDWORD lpdwRecipients, UINT uiMessage, WPARAM wParam, LPARAM lParam, PBSMINFO pBSMInfo)
LONG WINAPI BroadcastSystemMessageW(DWORD dwFlags, LPDWORD lpdwRecipients, UINT uiMessage, WPARAM wParam, LPARAM lParam)
◆ test_parameters()
Definition at line 80 of file broadcast.c.
81{
84
87 ret = broadcast( 0x80000000, &recips,
WM_NULL, 0, 0 );
89 {
90 win_skip(
"%s is not implemented\n", functionname);
91 return;
92 }
95
98 ret = broadcast( 0x80000000, &recips,
WM_NULL, 0, 0 );
101
102if (0)
103{
108 ok(0,
"Returned: %d\n",
ret);
109
114 ok(0,
"Returned: %d\n",
ret);
115
120 ok(0,
"Returned: %d\n",
ret);
121
126 ok(0,
"Returned: %d\n",
ret);
127}
128
135
141}
#define BSF_NOTIMEOUTIFNOTHUNG
#define ERROR_CALL_NOT_IMPLEMENTED
#define ERROR_INVALID_PARAMETER
BOOL WINAPI DECLSPEC_HOTPATCH PulseEvent(IN HANDLE hEvent)
DWORD WINAPI GetLastError(void)
#define BROADCAST_QUERY_DENY
◆ test_parametersEx()
Definition at line 147 of file broadcast.c.
148{
151
157
163
164if (0)
165{
170 ok(0,
"Returned: %d\n",
ret);
171
176 ok(0,
"Returned: %d\n",
ret);
177
182 ok(0,
"Returned: %d\n",
ret);
183
188 ok(0,
"Returned: %d\n",
ret);
189}
190
196
202}
Referenced by START_TEST().
◆ hevent
Definition at line 34 of file broadcast.c.
Referenced by cbt_global_hook_thread_proc(), init_procs(), main_window_procA(), mouse_ll_global_thread_proc(), test_fragmentsize(), test_parameters(), test_parametersEx(), test_winevents(), wave_in_test_deviceIn(), wave_out_test_deviceOut(), and win_event_global_thread_proc().