#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "initguid.h"
#include "vfw.h"
#include "avifile_private.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (avifile) |
| |
| static IClassFactoryImpl * | impl_from_IClassFactory (IClassFactory *iface) |
| |
| static HRESULT WINAPI | IClassFactory_fnQueryInterface (IClassFactory *iface, REFIID riid, void **ppobj) |
| |
| static ULONG WINAPI | IClassFactory_fnAddRef (IClassFactory *iface) |
| |
| static ULONG WINAPI | IClassFactory_fnRelease (IClassFactory *iface) |
| |
| static HRESULT WINAPI | IClassFactory_fnCreateInstance (IClassFactory *iface, IUnknown *pOuter, REFIID riid, void **ppobj) |
| |
| static HRESULT WINAPI | IClassFactory_fnLockServer (IClassFactory *iface, BOOL dolock) |
| |
| static HRESULT | AVIFILE_CreateClassFactory (const CLSID *clsid, const IID *riid, void **ppv) |
| |
| LPCWSTR | AVIFILE_BasenameW (LPCWSTR szPath) |
| |
| HRESULT WINAPI | DllGetClassObject (REFCLSID pclsid, REFIID piid, LPVOID *ppv) |
| |
| BOOL WINAPI | DllMain (HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved) |
| |
◆ COBJMACROS
◆ SLASH
| #define SLASH |
( |
|
w | ) |
((w) == '/' || (w) == '\\') |
◆ AVIFILE_BasenameW()
Definition at line 157 of file factory.c.
158{
159#define SLASH(w) ((w) == '/' || (w) == '\\')
160
162
164 szCur >
szPath && !
SLASH(*szCur) && *szCur !=
':';)
165 szCur--;
166
168 return szCur;
169 else
170 return szCur + 1;
171
172#undef SLASH
173}
Referenced by AVIFILE_LoadFile(), and IPersistFile_fnLoad().
◆ AVIFILE_CreateClassFactory()
Definition at line 136 of file factory.c.
137{
140
142
146
150
153
155}
static const IClassFactoryVtbl iclassfact
IClassFactory IClassFactory_iface
Referenced by DllGetClassObject().
◆ DllGetClassObject()
Definition at line 178 of file factory.c.
179{
181
183
186
190
192}
static HRESULT AVIFILE_CreateClassFactory(const CLSID *clsid, const IID *riid, void **ppv)
HRESULT WINAPI avifil32_DllGetClassObject(REFCLSID pclsid, REFIID piid, LPVOID *ppv)
◆ DllMain()
Definition at line 197 of file factory.c.
198{
200
205 break;
206 };
207
209}
static DWORD const fdwReason
#define DLL_PROCESS_ATTACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
static IN DWORD IN LPVOID lpvReserved
◆ IClassFactory_fnAddRef()
Definition at line 68 of file factory.c.
69{
72
75}
#define InterlockedIncrement
static IClassFactoryImpl * impl_from_IClassFactory(IClassFactory *iface)
◆ IClassFactory_fnCreateInstance()
Definition at line 90 of file factory.c.
92{
94
96 ppobj);
97
98 if (!ppobj)
101
104
109
110 if (pOuter)
112
117
119}
HRESULT AVIFILE_CreateACMStream(REFIID riid, LPVOID *ppv)
HRESULT AVIFILE_CreateAVIFile(IUnknown *pUnkOuter, REFIID riid, void **ppv)
HRESULT AVIFILE_CreateWAVFile(IUnknown *outer_unk, REFIID riid, void **ret_iface)
HRESULT AVIFILE_CreateICMStream(REFIID riid, LPVOID *ppobj)
#define IsEqualGUID(rguid1, rguid2)
#define CLASS_E_NOAGGREGATION
◆ IClassFactory_fnLockServer()
Definition at line 121 of file factory.c.
122{
123 TRACE(
"(%p,%d)\n",iface,dolock);
124
126}
◆ IClassFactory_fnQueryInterface()
Definition at line 53 of file factory.c.
55{
57
60 *ppobj = iface;
61 IClassFactory_AddRef(iface);
63 }
64
66}
const GUID IID_IClassFactory
◆ IClassFactory_fnRelease()
Definition at line 77 of file factory.c.
78{
81
83
86
88}
#define InterlockedDecrement
◆ impl_from_IClassFactory()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
avifile |
| ) |
|
◆ AVIFILE_hModule
◆ iclassfact
| const IClassFactoryVtbl iclassfact |
|
static |
Initial value:= {
}
static ULONG WINAPI IClassFactory_fnRelease(IClassFactory *iface)
static ULONG WINAPI IClassFactory_fnAddRef(IClassFactory *iface)
static HRESULT WINAPI IClassFactory_fnQueryInterface(IClassFactory *iface, REFIID riid, void **ppobj)
static HRESULT WINAPI IClassFactory_fnLockServer(IClassFactory *iface, BOOL dolock)
static HRESULT WINAPI IClassFactory_fnCreateInstance(IClassFactory *iface, IUnknown *pOuter, REFIID riid, void **ppobj)
Definition at line 128 of file factory.c.
Referenced by AVIFILE_CreateClassFactory().