ReactOS 0.4.15-dev-5666-gc548b97
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}
static LONG WINAPI VEHandler(PEXCEPTION_POINTERS ExceptionInfo)
#define ok(value,...)
Definition: atltest.h:57
#define START_TEST(x)
Definition: atltest.h:75
#define FALSE
Definition: types.h:117
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
Definition: system.c:950
#define EXCEPTION_CONTINUE_SEARCH
Definition: excpt.h:86
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
long LONG
Definition: pedump.c:60
HRESULT hr
Definition: shlfolder.c:183
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define WINAPI
Definition: msvc.h:6
#define E_HANDLE
Definition: winerror.h:2850