ReactOS  0.4.14-dev-614-gbfd8a84
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 }
#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:63
LONG HRESULT
Definition: typedefs.h:77
#define ok(value,...)
Definition: atltest.h:57
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
Definition: system.c:950

◆ 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 EXCEPTION_CONTINUE_SEARCH
Definition: excpt.h:86
#define ok(value,...)
Definition: atltest.h:57

Referenced by START_TEST().