#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) |
|
HRESULT WINAPI | DllCanUnloadNow (void) |
|
BOOL WINAPI | DllMain (HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved) |
|
HRESULT WINAPI | DllRegisterServer (void) |
|
HRESULT WINAPI | DllUnregisterServer (void) |
|
◆ COBJMACROS
◆ SLASH
#define SLASH |
( |
|
w | ) |
((w) == '/' || (w) == '\\') |
◆ AVIFILE_BasenameW()
Definition at line 162 of file factory.c.
163{
164#define SLASH(w) ((w) == '/' || (w) == '\\')
165
167
169 szCur >
szPath && !
SLASH(*szCur) && *szCur !=
':';)
170 szCur--;
171
173 return szCur;
174 else
175 return szCur + 1;
176
177#undef SLASH
178}
Referenced by AVIFILE_LoadFile(), and IPersistFile_fnLoad().
◆ AVIFILE_CreateClassFactory()
Definition at line 141 of file factory.c.
142{
145
147
151
155
158
160}
static const IClassFactoryVtbl iclassfact
IClassFactory IClassFactory_iface
Referenced by DllGetClassObject().
◆ DllCanUnloadNow()
Definition at line 202 of file factory.c.
203{
205}
static UINT AVIFILE_uUseCount
static BOOL AVIFILE_bLocked
◆ DllGetClassObject()
Definition at line 183 of file factory.c.
184{
186
188
191
195
197}
static HRESULT AVIFILE_CreateClassFactory(const CLSID *clsid, const IID *riid, void **ppv)
HRESULT WINAPI avifil32_DllGetClassObject(REFCLSID pclsid, REFIID piid, LPVOID *ppv) DECLSPEC_HIDDEN
◆ DllMain()
Definition at line 210 of file factory.c.
211{
213
214 switch (fdwReason) {
218 break;
219 };
220
222}
#define DLL_PROCESS_ATTACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
static IN DWORD IN LPVOID lpvReserved
◆ DllRegisterServer()
Definition at line 227 of file factory.c.
228{
230}
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
◆ DllUnregisterServer()
Definition at line 235 of file factory.c.
236{
238}
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
◆ IClassFactory_fnAddRef()
Definition at line 71 of file factory.c.
72{
75
78}
#define InterlockedIncrement
static IClassFactoryImpl * impl_from_IClassFactory(IClassFactory *iface)
◆ IClassFactory_fnCreateInstance()
Definition at line 93 of file factory.c.
95{
97
99 ppobj);
100
101 if (!ppobj)
104
107
112
113 if (pOuter)
115
120
122}
HRESULT AVIFILE_CreateACMStream(REFIID riid, LPVOID *ppv)
HRESULT AVIFILE_CreateAVIFile(IUnknown *pUnkOuter, REFIID riid, void **ppv)
HRESULT AVIFILE_CreateICMStream(REFIID riid, LPVOID *ppobj) DECLSPEC_HIDDEN
HRESULT AVIFILE_CreateWAVFile(IUnknown *outer_unk, REFIID riid, void **ret_iface) DECLSPEC_HIDDEN
#define IsEqualGUID(rguid1, rguid2)
#define CLASS_E_NOAGGREGATION
◆ IClassFactory_fnLockServer()
Definition at line 124 of file factory.c.
125{
126 TRACE(
"(%p,%d)\n",iface,dolock);
127
129
131}
◆ IClassFactory_fnQueryInterface()
Definition at line 56 of file factory.c.
58{
60
63 *ppobj = iface;
64 IClassFactory_AddRef(iface);
66 }
67
69}
const GUID IID_IClassFactory
◆ IClassFactory_fnRelease()
Definition at line 80 of file factory.c.
81{
84
86
89
91}
#define InterlockedDecrement
#define HeapFree(x, y, z)
◆ impl_from_IClassFactory()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
avifile |
| ) |
|
◆ AVIFILE_bLocked
◆ AVIFILE_hModule
◆ AVIFILE_uUseCount
◆ 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 133 of file factory.c.
Referenced by AVIFILE_CreateClassFactory().