diff --git a/rostests/winetests/CMakeLists.txt b/rostests/winetests/CMakeLists.txt index c31e4ecca14..b0e58b299fc 100644 --- a/rostests/winetests/CMakeLists.txt +++ b/rostests/winetests/CMakeLists.txt @@ -6,6 +6,7 @@ add_subdirectory(advpack) add_subdirectory(amstream) add_subdirectory(atl) add_subdirectory(atl100) +add_subdirectory(atl80) add_subdirectory(avifil32) add_subdirectory(browseui) add_subdirectory(cabinet) diff --git a/rostests/winetests/atl80/CMakeLists.txt b/rostests/winetests/atl80/CMakeLists.txt new file mode 100644 index 00000000000..09fd9b80de6 --- /dev/null +++ b/rostests/winetests/atl80/CMakeLists.txt @@ -0,0 +1,8 @@ + +add_definitions(-D_ATL_VER=_ATL_VER_80) +list(APPEND SOURCE atl.c testlist.c) +add_executable(atl80_winetest ${SOURCE}) +target_link_libraries(atl80_winetest wine uuid) +set_module_type(atl80_winetest win32cui) +add_importlibs(atl80_winetest atl80 oleaut32 ole32 advapi32 user32 msvcrt kernel32 ntdll) +add_cd_file(TARGET atl80_winetest DESTINATION reactos/bin FOR all) diff --git a/rostests/winetests/atl80/atl.c b/rostests/winetests/atl80/atl.c new file mode 100644 index 00000000000..a1ced2ea4df --- /dev/null +++ b/rostests/winetests/atl80/atl.c @@ -0,0 +1,67 @@ +/* + * Copyright 2013 Qian Hong for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include +#include + +#define COBJMACROS +#define CONST_VTABLE + +#include +#include +#include + +#include +#include + +#include + +static void test_ax_win(void) +{ + BOOL ret; + WNDCLASSEXW wcex; + static const WCHAR AtlAxWin80[] = {'A','t','l','A','x','W','i','n','8','0',0}; + static const WCHAR AtlAxWinLic80[] = {'A','t','l','A','x','W','i','n','L','i','c','8','0',0}; + static HMODULE hinstance = 0; + + ret = AtlAxWinInit(); + ok(ret, "AtlAxWinInit failed\n"); + + hinstance = GetModuleHandleA(NULL); + + memset(&wcex, 0, sizeof(wcex)); + wcex.cbSize = sizeof(wcex); + ret = GetClassInfoExW(hinstance, AtlAxWin80, &wcex); + ok(ret, "AtlAxWin80 has not registered\n"); + ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style); + + memset(&wcex, 0, sizeof(wcex)); + wcex.cbSize = sizeof(wcex); + ret = GetClassInfoExW(hinstance, AtlAxWinLic80, &wcex); + ok(ret, "AtlAxWinLic80 has not registered\n"); + ok(wcex.style == (CS_GLOBALCLASS | CS_DBLCLKS), "wcex.style %08x\n", wcex.style); +} + +START_TEST(atl) +{ + CoInitialize(NULL); + + test_ax_win(); + + CoUninitialize(); +} diff --git a/rostests/winetests/atl80/testlist.c b/rostests/winetests/atl80/testlist.c new file mode 100644 index 00000000000..10d57d22dad --- /dev/null +++ b/rostests/winetests/atl80/testlist.c @@ -0,0 +1,12 @@ +/* Automatically generated file; DO NOT EDIT!! */ + +#define STANDALONE +#include + +extern void func_atl(void); + +const struct test winetest_testlist[] = +{ + { "atl", func_atl }, + { 0, 0 } +};