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 
13 static LONG WINAPI VEHandler(PEXCEPTION_POINTERS ExceptionInfo)
14 {
15     ok(FALSE, "VEHandler called!\n");
16     return EXCEPTION_CONTINUE_SEARCH;
17 }
18 
19 START_TEST(CloseThemeData)
20 {
21     PVOID pVEH;
22     HRESULT hr;
23 
24     pVEH = AddVectoredExceptionHandler(1, VEHandler);
25 
26     hr = CloseThemeData((HTHEME)0xdeaddead);
27     ok( hr == E_HANDLE, "Expected E_HANDLE, got 0x%lx\n", hr);
28 
29     RemoveVectoredExceptionHandler(pVEH);
30 }