ReactOS 0.4.16-dev-106-g10b08aa
CloseThemeData.c File Reference
#include <apitest.h>
#include <stdio.h>
#include <windows.h>
#include <uxtheme.h>
Include dependency graph for CloseThemeData.c:

Go to the source code of this file.

Functions

static LONG WINAPI VEHandler (PEXCEPTION_POINTERS ExceptionInfo)
 
 START_TEST (CloseThemeData)
 

Function Documentation

◆ START_TEST()

START_TEST ( CloseThemeData  )

Definition at line 19 of file CloseThemeData.c.

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
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
Definition: system.c:950
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
HRESULT hr
Definition: shlfolder.c:183
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define E_HANDLE
Definition: winerror.h:2850

◆ VEHandler()

static LONG WINAPI VEHandler ( PEXCEPTION_POINTERS  ExceptionInfo)
static

Definition at line 13 of file CloseThemeData.c.

14{
15 ok(FALSE, "VEHandler called!\n");
17}
#define FALSE
Definition: types.h:117
#define EXCEPTION_CONTINUE_SEARCH
Definition: excpt.h:86

Referenced by START_TEST().