ReactOS  0.4.15-dev-1206-g731eddf
CloseThemeData.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS api tests
3  * LICENSE: GPL - See COPYING in the top level directory
4  * PURPOSE: Test for CloseThemeData
5  * PROGRAMMERS: Giannis Adamopoulos
6  */
7 
8 #include <apitest.h>
9 #include <stdio.h>
10 #include <windows.h>
11 #include <uxtheme.h>
12 
14 {
15  ok(FALSE, "VEHandler called!\n");
17 }
18 
20 {
21  PVOID pVEH;
22  HRESULT hr;
23 
24  pVEH = AddVectoredExceptionHandler(1, VEHandler);
25 
26  hr = CloseThemeData((HTHEME)(ULONG_PTR)0xdeaddeaddeaddeadULL);
27  ok( hr == E_HANDLE, "Expected E_HANDLE, got 0x%lx\n", hr);
28 
29  RemoveVectoredExceptionHandler(pVEH);
30 }
#define E_HANDLE
Definition: winerror.h:2850
HRESULT hr
Definition: shlfolder.c:183
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
static LONG WINAPI VEHandler(PEXCEPTION_POINTERS ExceptionInfo)
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define EXCEPTION_CONTINUE_SEARCH
Definition: excpt.h:86
#define FALSE
Definition: types.h:117
long LONG
Definition: pedump.c:60
START_TEST(CloseThemeData)
LONG HRESULT
Definition: typedefs.h:79
#define WINAPI
Definition: msvc.h:6
#define ok(value,...)
Definition: atltest.h:57
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
Definition: system.c:950