ReactOS  0.4.15-dev-1386-g5cb9f87
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 
37  transform = NULL;
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 
45  transform = NULL;
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 
54  transform = NULL;
56  ok( hr == S_OK, "got %08x\n", hr );
57  if (transform) IWICColorTransform_Release( transform );
59 }
HRESULT hr
Definition: shlfolder.c:183
#define E_INVALIDARG
Definition: ddrawi.h:101
HRESULT WINAPI WICCreateColorTransform_Proxy(IWICColorTransform **)
Definition: main.c:61
LONG HRESULT
Definition: typedefs.h:79
#define S_OK
Definition: intsafe.h:51
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
#define ok(value,...)
Definition: atltest.h:57
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
Definition: compobj.c:2002
#define NULL
Definition: types.h:112
GLuint GLenum GLenum transform
Definition: glext.h:9407

Referenced by START_TEST().

◆ WICCreateColorTransform_Proxy()

HRESULT WINAPI WICCreateColorTransform_Proxy ( IWICColorTransform **  )

Definition at line 61 of file main.c.

62 {
63  HRESULT hr, init;
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 hr
Definition: shlfolder.c:183
Definition: main.c:438
if SUCCEEDED(hr)
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
static BOOL init(void)
Definition: main.c:59
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
Definition: compobj.c:2002
#define NULL
Definition: types.h:112
static ClassFactoryImpl factory
Definition: ole_server.c:234

Referenced by test_WICCreateColorTransform_Proxy().