Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
569a452d
Commit
569a452d
authored
Jun 13, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Add framework and initial tests.
parent
03cc51ab
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
250 additions
and
4 deletions
+250
-4
configure
configure
+2
-1
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/uxtheme/Makefile.in
+2
-0
.gitignore
dlls/uxtheme/tests/.gitignore
+3
-0
Makefile.in
dlls/uxtheme/tests/Makefile.in
+13
-0
system.c
dlls/uxtheme/tests/system.c
+223
-0
Makefile.in
programs/winetest/Makefile.in
+6
-3
No files found.
configure
View file @
569a452d
...
...
@@ -21221,7 +21221,7 @@ MAKE_LIB_RULES=libs/Makelib.rules
MAKE_PROG_RULES
=
programs/Makeprog.rules
ac_config_files
=
"
$ac_config_files
Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
ac_config_files
=
"
$ac_config_files
Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/
uxtheme/tests/Makefile dlls/
vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
cat
>
confcache
<<
\
_ACEOF
...
...
@@ -21975,6 +21975,7 @@ do
"dlls/usp10/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/usp10/tests/Makefile" ;;
"dlls/uuid/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/uuid/Makefile" ;;
"dlls/uxtheme/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/uxtheme/Makefile" ;;
"dlls/uxtheme/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/uxtheme/tests/Makefile" ;;
"dlls/vdhcp.vxd/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/vdhcp.vxd/Makefile" ;;
"dlls/vdmdbg/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/vdmdbg/Makefile" ;;
"dlls/version/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/version/Makefile" ;;
...
...
configure.ac
View file @
569a452d
...
...
@@ -1724,6 +1724,7 @@ dlls/usp10/Makefile
dlls/usp10/tests/Makefile
dlls/uuid/Makefile
dlls/uxtheme/Makefile
dlls/uxtheme/tests/Makefile
dlls/vdhcp.vxd/Makefile
dlls/vdmdbg/Makefile
dlls/version/Makefile
...
...
dlls/uxtheme/Makefile.in
View file @
569a452d
...
...
@@ -20,6 +20,8 @@ C_SRCS = \
RC_SRCS
=
version.rc
SUBDIRS
=
tests
@MAKE_DLL_RULES@
### Dependencies:
dlls/uxtheme/tests/.gitignore
0 → 100644
View file @
569a452d
Makefile
system.ok
testlist.c
dlls/uxtheme/tests/Makefile.in
0 → 100644
View file @
569a452d
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
uxtheme.dll
IMPORTS
=
user32 kernel32
CTESTS
=
\
system.c
@MAKE_TEST_RULES@
### Dependencies:
dlls/uxtheme/tests/system.c
0 → 100644
View file @
569a452d
/* Unit test suite for uxtheme API functions
*
* Copyright 2006 Paul Vriens
*
* 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 <stdarg.h>
#include "windows.h"
#include "uxtheme.h"
#include "wine/test.h"
static
HRESULT
(
WINAPI
*
pCloseThemeData
)(
HTHEME
);
static
BOOL
(
WINAPI
*
pIsThemeActive
)(
VOID
);
static
HTHEME
(
WINAPI
*
pOpenThemeData
)(
HWND
,
LPCWSTR
);
static
HRESULT
(
WINAPI
*
pSetWindowTheme
)(
HWND
,
LPCWSTR
,
LPCWSTR
);
static
HMODULE
hUxtheme
=
0
;
#define UXTHEME_GET_PROC(func) \
p ## func = (void*)GetProcAddress(hUxtheme, #func); \
if(!p ## func) { \
trace("GetProcAddress(%s) failed\n", #func); \
FreeLibrary(hUxtheme); \
return FALSE; \
}
static
BOOL
InitFunctionPtrs
(
void
)
{
hUxtheme
=
LoadLibraryA
(
"uxtheme.dll"
);
if
(
!
hUxtheme
)
{
trace
(
"Could not load uxtheme.dll
\n
"
);
return
FALSE
;
}
if
(
hUxtheme
)
{
UXTHEME_GET_PROC
(
CloseThemeData
)
UXTHEME_GET_PROC
(
IsThemeActive
)
UXTHEME_GET_PROC
(
OpenThemeData
)
UXTHEME_GET_PROC
(
SetWindowTheme
)
}
return
TRUE
;
}
static
void
test_SetWindowTheme
(
void
)
{
HRESULT
hRes
;
HWND
hWnd
;
SetLastError
(
0xdeadbeef
);
hRes
=
pSetWindowTheme
(
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
hRes
==
E_HANDLE
,
"Expected E_HANDLE, got 0x%08lx
\n
"
,
hRes
);
/* Only do the bare minumum to get a valid hwnd */
hWnd
=
CreateWindowExA
(
0
,
"static"
,
""
,
WS_POPUP
,
0
,
0
,
100
,
100
,
0
,
0
,
0
,
NULL
);
if
(
!
hWnd
)
return
;
SetLastError
(
0xdeadbeef
);
hRes
=
pSetWindowTheme
(
hWnd
,
NULL
,
NULL
);
ok
(
hRes
==
S_OK
,
"Expected S_OK, got 0x%08lx
\n
"
,
hRes
);
}
static
void
test_OpenThemeData
(
void
)
{
HTHEME
hTheme
;
HWND
hWnd
;
BOOL
bThemeActive
;
WCHAR
szInvalidClassList
[]
=
{
'D'
,
'E'
,
'A'
,
'D'
,
'B'
,
'E'
,
'E'
,
'F'
,
0
};
WCHAR
szButtonClassList
[]
=
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
0
};
WCHAR
szClassList
[]
=
{
'B'
,
'u'
,
't'
,
't'
,
'o'
,
'n'
,
';'
,
'L'
,
'i'
,
's'
,
't'
,
'B'
,
'o'
,
'x'
,
0
};
SetLastError
(
0xdeadbeef
);
bThemeActive
=
pIsThemeActive
();
todo_wine
ok
(
GetLastError
()
==
S_OK
,
"Expected S_OK, got 0x%08lx
\n
"
,
GetLastError
());
/* All NULL */
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
NULL
,
NULL
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_POINTER
,
"Expected GLE() to be E_POINTER, got 0x%08lx
\n
"
,
GetLastError
());
/* A NULL hWnd and an invalid classlist */
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
NULL
,
szInvalidClassList
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_PROP_ID_UNSUPPORTED
,
"Expected GLE() to be E_PROP_ID_UNSUPPORTED, got 0x%08lx
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
NULL
,
szClassList
);
if
(
bThemeActive
)
{
ok
(
hTheme
!=
NULL
,
"got NULL, expected a HTHEME handle
\n
"
);
todo_wine
ok
(
GetLastError
()
==
S_OK
,
"Expected S_OK, got 0x%08lx
\n
"
,
GetLastError
());
}
else
{
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_PROP_ID_UNSUPPORTED
,
"Expected GLE() to be E_PROP_ID_UNSUPPORTED, got 0x%08lx
\n
"
,
GetLastError
());
}
/* Only do the bare minumum to get a valid hdc */
hWnd
=
CreateWindowExA
(
0
,
"static"
,
""
,
WS_POPUP
,
0
,
0
,
100
,
100
,
0
,
0
,
0
,
NULL
);
if
(
!
hWnd
)
return
;
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
hWnd
,
NULL
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_POINTER
,
"Expected GLE() to be E_POINTER, got 0x%08lx
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
hWnd
,
szInvalidClassList
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_PROP_ID_UNSUPPORTED
,
"Expected GLE() to be E_PROP_ID_UNSUPPORTED, got 0x%08lx
\n
"
,
GetLastError
());
if
(
!
bThemeActive
)
{
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
hWnd
,
szButtonClassList
);
ok
(
hTheme
==
NULL
,
"Expected a NULL return, got %p
\n
"
,
hTheme
);
todo_wine
ok
(
GetLastError
()
==
E_PROP_ID_UNSUPPORTED
,
"Expected GLE() to be E_PROP_ID_UNSUPPORTED, got 0x%08lx
\n
"
,
GetLastError
());
trace
(
"No active theme, skipping rest of OpenThemeData tests
\n
"
);
return
;
}
/* Only do the next checks if we have an active theme */
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
hWnd
,
szButtonClassList
);
ok
(
hTheme
!=
NULL
,
"got NULL, expected a HTHEME handle
\n
"
);
todo_wine
ok
(
GetLastError
()
==
S_OK
,
"Expected S_OK, got 0x%08lx
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hTheme
=
pOpenThemeData
(
hWnd
,
szClassList
);
ok
(
hTheme
!=
NULL
,
"got NULL, expected a HTHEME handle
\n
"
);
todo_wine
ok
(
GetLastError
()
==
S_OK
,
"Expected S_OK, got 0x%08lx
\n
"
,
GetLastError
());
}
static
void
test_CloseThemeData
(
void
)
{
HRESULT
hRes
;
SetLastError
(
0xdeadbeef
);
hRes
=
pCloseThemeData
(
NULL
);
ok
(
hRes
==
E_HANDLE
,
"Expected E_HANDLE, got 0x%08lx"
,
hRes
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
}
START_TEST
(
system
)
{
if
(
!
InitFunctionPtrs
())
return
;
/* No real functional tests will be done (yet). The current tests
* only show input/return behaviour
*/
/* SetWindowTheme */
trace
(
"Starting test_SetWindowTheme()
\n
"
);
if
(
pSetWindowTheme
)
test_SetWindowTheme
();
/* OpenThemeData */
trace
(
"Starting test_OpenThemeData()
\n
"
);
if
(
pOpenThemeData
&&
pIsThemeActive
)
test_OpenThemeData
();
/* CloseThemeData */
trace
(
"Starting test_CloseThemeData()
\n
"
);
if
(
pCloseThemeData
)
test_CloseThemeData
();
FreeLibrary
(
hUxtheme
);
}
programs/winetest/Makefile.in
View file @
569a452d
...
...
@@ -61,8 +61,9 @@ TESTBINS = \
shell32_test.exe
$(DLLEXT)
\
shlwapi_test.exe
$(DLLEXT)
\
urlmon_test.exe
$(DLLEXT)
\
usp10_test.exe
$(DLLEXT)
\
user32_test.exe
$(DLLEXT)
\
usp10_test.exe
$(DLLEXT)
\
uxtheme_test.exe
$(DLLEXT)
\
version_test.exe
$(DLLEXT)
\
wininet_test.exe
$(DLLEXT)
\
winmm_test.exe
$(DLLEXT)
\
...
...
@@ -182,10 +183,12 @@ shlwapi_test.exe$(DLLEXT): $(DLLDIR)/shlwapi/tests/shlwapi_test.exe$(DLLEXT)
cp
$(DLLDIR)
/shlwapi/tests/shlwapi_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
urlmon_test.exe$(DLLEXT)
:
$(DLLDIR)/urlmon/tests/urlmon_test.exe$(DLLEXT)
cp
$(DLLDIR)
/urlmon/tests/urlmon_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
usp10_test.exe$(DLLEXT)
:
$(DLLDIR)/usp10/tests/usp10_test.exe$(DLLEXT)
cp
$(DLLDIR)
/usp10/tests/usp10_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
user32_test.exe$(DLLEXT)
:
$(DLLDIR)/user/tests/user32_test.exe$(DLLEXT)
cp
$(DLLDIR)
/user/tests/user32_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
usp10_test.exe$(DLLEXT)
:
$(DLLDIR)/usp10/tests/usp10_test.exe$(DLLEXT)
cp
$(DLLDIR)
/usp10/tests/usp10_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
uxtheme_test.exe$(DLLEXT)
:
$(DLLDIR)/uxtheme/tests/uxtheme_test.exe$(DLLEXT)
cp
$(DLLDIR)
/uxtheme/tests/uxtheme_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
wininet_test.exe$(DLLEXT)
:
$(DLLDIR)/wininet/tests/wininet_test.exe$(DLLEXT)
cp
$(DLLDIR)
/wininet/tests/wininet_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
version_test.exe$(DLLEXT)
:
$(DLLDIR)/version/tests/version_test.exe$(DLLEXT)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment