ReactOS 0.4.15-dev-7924-g5949c20
transform.c File Reference
#include <stdio.h>
#include "windows.h"
#include "objbase.h"
#include "wincodec.h"
#include "wine/test.h"
Include dependency graph for transform.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 

Functions

HRESULT WINAPI WICCreateColorTransform_Proxy (IWICColorTransform **)
 
static void test_WICCreateColorTransform_Proxy (void)
 
 START_TEST (transform)
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 19 of file transform.c.

Function Documentation

◆ START_TEST()

START_TEST ( transform  )

Definition at line 61 of file transform.c.

62{
64}
static void test_WICCreateColorTransform_Proxy(void)
Definition: transform.c:29

◆ test_WICCreateColorTransform_Proxy()

static void test_WICCreateColorTransform_Proxy ( void  )
static

Definition at line 29 of file transform.c.

30{
31 HRESULT hr;
33
35 ok( hr == E_INVALIDARG, "got %08x\n", hr );
36
39 ok( hr == S_OK, "got %08x\n", hr );
40 if (transform) IWICColorTransform_Release( transform );
41
43 ok( hr == S_OK, "got %08x\n", hr );
44
47 ok( hr == S_OK, "got %08x\n", hr );
48 if (transform) IWICColorTransform_Release( transform );
50
52 ok( hr == S_OK, "got %08x\n", hr );
53
56 ok( hr == S_OK, "got %08x\n", hr );
57 if (transform) IWICColorTransform_Release( transform );
59}
#define ok(value,...)
Definition: atltest.h:57
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
Definition: compobj.c:2002
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
GLuint GLenum GLenum transform
Definition: glext.h:9407
#define S_OK
Definition: intsafe.h:52
HRESULT WINAPI WICCreateColorTransform_Proxy(IWICColorTransform **)
Definition: main.c:61
@ COINIT_APARTMENTTHREADED
Definition: objbase.h:278
@ COINIT_MULTITHREADED
Definition: objbase.h:279
HRESULT hr
Definition: shlfolder.c:183

Referenced by START_TEST().

◆ WICCreateColorTransform_Proxy()

HRESULT WINAPI WICCreateColorTransform_Proxy ( IWICColorTransform **  ppIWICColorTransform)

Definition at line 61 of file main.c.

62{
65
66 TRACE("(%p)\n", ppIWICColorTransform);
67
68 if (!ppIWICColorTransform) return E_INVALIDARG;
69
71
72 hr = CoCreateInstance(&CLSID_WICImagingFactory, NULL, CLSCTX_INPROC_SERVER,
73 &IID_IWICImagingFactory, (void **)&factory);
74 if (FAILED(hr))
75 {
77 return hr;
78 }
79 hr = IWICImagingFactory_CreateColorTransformer(factory, ppIWICColorTransform);
80 IWICImagingFactory_Release(factory);
81
83 return hr;
84}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define FAILED(hr)
Definition: intsafe.h:51
#define TRACE(s)
Definition: solgame.cpp:4
Definition: main.c:439
static int init
Definition: wintirpc.c:33

Referenced by test_WICCreateColorTransform_Proxy().