+#pragma once
+
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
{
WNDCLASSEXW wcex;
* PROGRAMMERS: Giannis Adamopoulos
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-#include <msgtrace.h>
-#include <user32testhelpers.h>
-
-#define DESKTOP_ALL_ACCESS 0x01ff
+#include "precomp.h"
typedef struct {
DWORD tid;
TrackMouseEvent.c
WndProc.c
wsprintf.c
- testlist.c
- user32_apitest.rc)
+ precomp.h)
-add_executable(user32_apitest ${SOURCE})
+add_executable(user32_apitest ${SOURCE} testlist.c user32_apitest.rc)
target_link_libraries(user32_apitest wine ${PSEH_LIB})
set_module_type(user32_apitest win32cui)
add_importlibs(user32_apitest advapi32 gdi32 user32 msvcrt kernel32 ntdll)
+add_pch(user32_apitest precomp.h SOURCE)
add_rostests_file(TARGET user32_apitest)
add_rostests_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/verclasstest1.manifest")
* PROGRAMMERS: Andreas Maier
*/
-#include <stdarg.h>
-#include <stdio.h>
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
#define TEST_MAX_MSG 50
-#include <apitest.h>
-
-#include <winuser.h>
-#include <wingdi.h>
+#include "precomp.h"
START_TEST(CreateIconFromResourceEx)
{
ok(hcur1 == NULL, "\n");
err = GetLastError();
ok(err == 0x0badf00d, "err: %lu\n", err);
-}
\ No newline at end of file
+}
* Mark Jansen
*/
-#include <apitest.h>
-#include <winuser.h>
-#include <msgtrace.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
static void Test_Params(void)
{
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#include <winuser.h>
-#include <undocuser.h>
-#include <msgtrace.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
HWND hWnd1, hWnd2, hWnd3, hWnd4;
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
START_TEST(DestroyCursorIcon)
{
/* clean up */
DeleteObject(iconinfo.hbmMask);
DeleteObject(iconinfo.hbmColor);
-}
\ No newline at end of file
+}
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
START_TEST(DrawIconEx)
{
hbmp = SelectObject(hdc, hbmp);
DeleteObject(hbmp);
DeleteDC(hdc);
-}
\ No newline at end of file
+}
* PROGRAMMERS: Giannis Adamopoulos
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
-#include <msgtrace.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
HWND hWnd1, hWnd2;
-#include <apitest.h>
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
#define SIZEOF_DEVMODEW_300_W 188
#define SIZEOF_DEVMODEW_400_W 212
* PROGRAMMERS: Timo Kreuzer
*/
-#include <stdio.h>
-#include <wine/test.h>
-#include <windows.h>
+#include "precomp.h"
#define DCX_USESTYLE 0x00010000
Test_GetDCEx_CS_Mixed();
Test_GetDCEx_CS_SwitchedStyle();
}
-
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
-#include "resource.h"
+#include "precomp.h"
// FIXME user32
/* Delete cursor */
DestroyCursor(hcursor);
}
-
-
* PROGRAMMERS: Giannis Adamopoulos
*/
-#include <apitest.h>
-
-#include <winuser.h>
-#include <assert.h>
+#include "precomp.h"
HHOOK hKbdHook, hKbdLLHook;
START_TEST(GetKeyState)
{
Test_GetKeyState();
-}
\ No newline at end of file
+}
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#include <winuser.h>
+#include "precomp.h"
void Test_GetMessage(HWND hWnd)
{
* PROGRAMMERS: Timo Kreuzer
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
void Test_GetSystemMetrics()
{
{
Test_GetSystemMetrics();
}
-
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
+
#include <ndk/mmfuncs.h>
#include <ndk/pstypes.h>
#include <strsafe.h>
{
TestGetUserObjectInfoW();
TestGetUserObjectInfoA();
-}
\ No newline at end of file
+}
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <winuser.h>
+#include "precomp.h"
#define ALIGN_DOWN_BY(size, align) \
((ULONG_PTR)(size) & ~((ULONG_PTR)(align) - 1))
* PROGRAMMERS: Magnus Olsen
*/
-#include <apitest.h>
-
-#include <winuser.h>
+#include "precomp.h"
typedef struct _LPK_LPEDITCONTROL_LIST
{
{
Test_InitializeLpkHooks();
}
-
-#include <apitest.h>
-
-#include <stdio.h>
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
START_TEST(LoadImage)
{
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
-#include "resource.h"
+#include "precomp.h"
START_TEST(LookupIconIdFromDirectoryEx)
{
ok(ChangeDisplaySettingsExW(NULL, &dm, NULL, 0, NULL) == DISP_CHANGE_SUCCESSFUL, "\n");
FreeResource(hMem);
-}
\ No newline at end of file
+}
* PROGRAMMERS: Katayama Hirofumi MZ
*/
-#include <stdarg.h>
-#include <stdio.h>
-#include <apitest.h>
+#include "precomp.h"
-#include <wingdi.h>
-#include <winuser.h>
#include <windowsx.h>
#include <dlgs.h>
* PROGRAMMERS: Gregor Gullwi
*/
-#include <apitest.h>
-
-#include <stdio.h>
-#include <winuser.h>
+#include "precomp.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
Test_ClassAtoms();
Test_RealGetWindowClass();
}
-
* PROGRAMMERS: Giannis Adamopoulos
*/
-#include <apitest.h>
-#define WIN32_NO_STATUS
-#include <ndk/rtlfuncs.h>
-
-#include <wchar.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <undocuser.h>
+#include "precomp.h"
static ATOM _RegisterClass(LPCWSTR lpwszClassName, HINSTANCE hInstance, UINT style, WNDPROC lpfnWndProc)
{
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#include <winuser.h>
-#include <shlobj.h>
-#include <undocshell.h>
-#include <undocuser.h>
+#include "precomp.h"
#define msg_hotkey(msg, id, mod, vk) do \
{ \
* PROGRAMMERS: Timo Kreuzer
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
void Test_ScrollDC()
{
{
Test_ScrollDC();
}
-
* PROGRAMMERS: Timo Kreuzer
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
void Test_ScrollWindowEx()
{
{
Test_ScrollWindowEx();
}
-
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <winuser.h>
-
-#include <msgtrace.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
static DWORD dwThread1;
static DWORD dwThread2;
* PROGRAMMERS: Giannis Adamopoulos
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-#include <undocuser.h>
-
-#include <msgtrace.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
HWND hWnd1, hWnd2;
* PROGRAMMERS: Giannis Adamopoulos
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-#include <assert.h>
+#include "precomp.h"
HHOOK hMouseHookLL, hMouseHook;
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#include <winuser.h>
-#include <msgtrace.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
static HWND hWndList[5 + 1];
static const int hWndCount = sizeof(hWndList) / sizeof(hWndList[0]) - 1;
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-#include <winuser.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
static ATOM Atom1, Atom2, Atom3;
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
START_TEST(SetScrollInfo)
{
* PROGRAMMERS: Thomas Faber <thomas.faber@reactos.org>
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
START_TEST(SetScrollRange)
{
* PROGRAMMERS: Giannis Adamopoulos
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-#include <undocuser.h>
-
-#include <msgtrace.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
HWND hWnd1, hWnd2;
DestroyWindow(hWnd1);
DestroyWindow(hWnd2);
UnregisterClassW(L"sysparamstest", 0);
-}
\ No newline at end of file
+}
* PROGRAMMERS: Giannis Adamopoulos
*/
-#include <apitest.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <undocuser.h>
-
-#include <msgtrace.h>
-#include <user32testhelpers.h>
+#include "precomp.h"
HWND hWnd1, hWnd2, hWnd3;
HHOOK hMouseHookLL, hMouseHook;
* PROGRAMMERS:
*/
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
/* Used wine Redraw test for proof in principle. */
* Thomas Faber
*/
-#define WIN32_NO_STATUS
-#include <apitest.h>
-
-#include <stdio.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <user32testhelpers.h>
-#include <ndk/umtypes.h>
-#include <ndk/obfuncs.h>
+#include "precomp.h"
-#define DESKTOP_ALL_ACCESS 0x01ff
+#include <ndk/obfuncs.h>
struct test_info {
WCHAR* ExpectedWinsta;
--- /dev/null
+#ifndef _USER32_APITEST_PRECOMP_H_
+#define _USER32_APITEST_PRECOMP_H_
+
+#define WIN32_NO_STATUS
+#include <assert.h>
+#include <stdio.h>
+#include <apitest.h>
+#include <wingdi.h>
+#include <winuser.h>
+#include <msgtrace.h>
+#include <user32testhelpers.h>
+#include <undocuser.h>
+
+#include "resource.h"
+
+#define DESKTOP_ALL_ACCESS 0x01ff
+
+#endif /* _USER32_APITEST_PRECOMP_H_ */