ReactOS  0.4.15-dev-1397-g19779b3
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 }
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define CLASS_E_CLASSNOTAVAILABLE
Definition: winerror.h:2663
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_guid
Definition: kernel32.h:35

◆ 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 */
43  case DLL_PROCESS_ATTACH:
45  break;
46  }
47 
48  return TRUE;
49 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define FALSE
Definition: types.h:117
r reserved
Definition: btrfs.c:2940
#define TRACE(s)
Definition: solgame.cpp:4
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
static HINSTANCE instance
Definition: main.c:40

◆ 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 }
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4

◆ WICCreateColorTransform_Proxy()

HRESULT WINAPI WICCreateColorTransform_Proxy ( IWICColorTransform **  ppIWICColorTransform)

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().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( wincodecs  )