ReactOS 0.4.15-dev-8109-gd7be748
main.c File Reference
#include "config.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "initguid.h"
#include "wincodec.h"
#include "wine/debug.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (wincodecs)
 
BOOL WINAPI DllMain (HINSTANCE instance, DWORD reason, LPVOID reserved)
 
HRESULT WINAPI DllGetClassObject (REFCLSID rclsid, REFIID iid, LPVOID *ppv)
 
HRESULT WINAPI WICCreateColorTransform_Proxy (IWICColorTransform **ppIWICColorTransform)
 
HRESULT WINAPI IWICColorTransform_Initialize_Proxy_W (IWICColorTransform *iface, IWICBitmapSource *pIBitmapSource, IWICColorContext *pIContextSource, IWICColorContext *pIContextDest, REFWICPixelFormatGUID pixelFmtDest)
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 25 of file main.c.

Function Documentation

◆ DllGetClassObject()

HRESULT WINAPI DllGetClassObject ( REFCLSID  rclsid,
REFIID  iid,
LPVOID ppv 
)

Definition at line 54 of file main.c.

55{
56 FIXME("(%s,%s,%p) stub\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
57
59}
#define FIXME(fmt,...)
Definition: debug.h:114
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  instance,
DWORD  reason,
LPVOID  reserved 
)

Definition at line 35 of file main.c.

36{
37 TRACE("(%p, %u, %p)\n", instance, reason, reserved);
38
39 switch (reason)
40 {
41 case DLL_WINE_PREATTACH:
42 return FALSE; /* prefer native version */
45 break;
46 }
47
48 return TRUE;
49}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static HINSTANCE instance
Definition: main.c:40
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
r reserved
Definition: btrfs.c:3006
#define TRACE(s)
Definition: solgame.cpp:4

◆ IWICColorTransform_Initialize_Proxy_W()

HRESULT WINAPI IWICColorTransform_Initialize_Proxy_W ( IWICColorTransform iface,
IWICBitmapSource pIBitmapSource,
IWICColorContext pIContextSource,
IWICColorContext pIContextDest,
REFWICPixelFormatGUID  pixelFmtDest 
)

Definition at line 86 of file main.c.

89{
90 TRACE("(%p,%p,%p,%p,%s)\n", iface, pIBitmapSource, pIContextSource, pIContextDest,
91 debugstr_guid(pixelFmtDest));
92
93 return IWICColorTransform_Initialize(iface, pIBitmapSource, pIContextSource,
94 pIContextDest, pixelFmtDest);
95}

◆ 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}
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
HRESULT WINAPI DECLSPEC_HOTPATCH CoInitializeEx(LPVOID lpReserved, DWORD dwCoInit)
Definition: compobj.c:2002
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define FAILED(hr)
Definition: intsafe.h:51
@ COINIT_MULTITHREADED
Definition: objbase.h:279
HRESULT hr
Definition: shlfolder.c:183
Definition: main.c:439
static int init
Definition: wintirpc.c:33

Referenced by test_WICCreateColorTransform_Proxy().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( wincodecs  )