ReactOS  0.4.15-dev-1207-g698a8e6
qcap_main.c File Reference
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winerror.h"
#include "objbase.h"
#include "uuids.h"
#include "strmif.h"
#include "qcap_main.h"
#include "wine/unicode.h"
#include "wine/debug.h"
Include dependency graph for qcap_main.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (qcap)
 
BOOL WINAPI DllMain (HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
 
HRESULT WINAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 
HRESULT WINAPI DllRegisterServer (void)
 
HRESULT WINAPI DllUnregisterServer (void)
 
HRESULT WINAPI DllCanUnloadNow (void)
 
DWORD ObjectRefCount (BOOL increment)
 

Variables

static LONG objects_ref = 0
 
static const WCHAR wAudioCaptureFilter []
 
static const WCHAR wAVICompressor []
 
static const WCHAR wVFWCaptFilter []
 
static const WCHAR wVFWCaptFilterProp []
 
static const WCHAR wAVIMux []
 
static const WCHAR wAVIMuxPropPage []
 
static const WCHAR wAVIMuxPropPage1 []
 
static const WCHAR wFileWriter []
 
static const WCHAR wCaptGraphBuilder []
 
static const WCHAR wCaptGraphBuilder2 []
 
static const WCHAR wInfPinTeeFilter []
 
static const WCHAR wSmartTeeFilter []
 
static const WCHAR wAudioInMixerProp []
 
FactoryTemplate const g_Templates []
 
int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0])
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 27 of file qcap_main.c.

Function Documentation

◆ DllCanUnloadNow()

HRESULT WINAPI DllCanUnloadNow ( void  )

Definition at line 184 of file qcap_main.c.

185 {
186  TRACE("\n");
187 
188  if (STRMBASE_DllCanUnloadNow() == S_OK && objects_ref == 0)
189  return S_OK;
190  return S_FALSE;
191 }
#define S_FALSE
Definition: winerror.h:2357
static LONG objects_ref
Definition: qcap_main.c:44
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT WINAPI STRMBASE_DllCanUnloadNow(void)
Definition: dllfunc.c:393
#define S_OK
Definition: intsafe.h:51

◆ DllGetClassObject()

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

Definition at line 158 of file qcap_main.c.

159 {
160  return STRMBASE_DllGetClassObject( rclsid, riid, ppv );
161 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT WINAPI STRMBASE_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition: dllfunc.c:340

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hInstDLL,
DWORD  fdwReason,
LPVOID  lpv 
)

Definition at line 150 of file qcap_main.c.

151 {
152  return STRMBASE_DllMain(hInstDLL,fdwReason,lpv);
153 }
BOOL WINAPI STRMBASE_DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
Definition: dllfunc.c:217

◆ DllRegisterServer()

HRESULT WINAPI DllRegisterServer ( void  )

Definition at line 166 of file qcap_main.c.

167 {
168  TRACE("()\n");
170 }
#define TRUE
Definition: types.h:120
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT WINAPI AMovieDllRegisterServer2(BOOL bRegister)
Definition: dllfunc.c:155

◆ DllUnregisterServer()

HRESULT WINAPI DllUnregisterServer ( void  )

Definition at line 175 of file qcap_main.c.

176 {
177  TRACE("\n");
179 }
#define FALSE
Definition: types.h:117
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT WINAPI AMovieDllRegisterServer2(BOOL bRegister)
Definition: dllfunc.c:155

◆ ObjectRefCount()

DWORD ObjectRefCount ( BOOL  increment)

Definition at line 193 of file qcap_main.c.

194 {
195  if (increment)
198 }
static LONG objects_ref
Definition: qcap_main.c:44
#define InterlockedDecrement
Definition: armddk.h:52
#define InterlockedIncrement
Definition: armddk.h:53

Referenced by AviMux_Release(), fnCaptureGraphBuilder2_Release(), QCAP_createAVIMux(), QCAP_createCaptureGraphBuilder2(), QCAP_createVFWCaptureFilter(), unknown_inner_Release(), VfwPin_Construct(), and VfwPin_Release().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( qcap  )

Variable Documentation

◆ g_cTemplates

int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0])

◆ g_Templates

FactoryTemplate const g_Templates[]

◆ objects_ref

LONG objects_ref = 0
static

Definition at line 44 of file qcap_main.c.

Referenced by DllCanUnloadNow(), and ObjectRefCount().

◆ wAudioCaptureFilter

const WCHAR wAudioCaptureFilter[]
static
Initial value:
=
{'A','u','d','i','o',' ','C','a','p','t','u','r','e',' ','F','i','l','t','e','r',0}

Definition at line 46 of file qcap_main.c.

◆ wAudioInMixerProp

const WCHAR wAudioInMixerProp[]
static
Initial value:
=
{'A','u','d','i','o','I','n','p','u','t','M','i','x','e','r',' ','P','r','o',
'p','e','r','t','y',' ','P','a','g','e',0}

Definition at line 72 of file qcap_main.c.

◆ wAVICompressor

const WCHAR wAVICompressor[]
static
Initial value:
=
{'A','V','I',' ','C','o','m','p','r','e','s','s','o','r',0}

Definition at line 48 of file qcap_main.c.

◆ wAVIMux

const WCHAR wAVIMux[]
static
Initial value:
=
{'A','V','I',' ','m','u','x',0}

Definition at line 55 of file qcap_main.c.

◆ wAVIMuxPropPage

const WCHAR wAVIMuxPropPage[]
static
Initial value:
=
{'A','V','I',' ','m','u','x',' ','P','r','o','p','e','r','t','y',' ','P','a','g','e',0}

Definition at line 57 of file qcap_main.c.

◆ wAVIMuxPropPage1

const WCHAR wAVIMuxPropPage1[]
static
Initial value:
=
{'A','V','I',' ','m','u','x',' ','P','r','o','p','e','r','t','y',' ','P','a','g','e','1',0}

Definition at line 59 of file qcap_main.c.

◆ wCaptGraphBuilder

const WCHAR wCaptGraphBuilder[]
static
Initial value:
=
{'C','a','p','t','u','r','e',' ','G','r','a','p','h',' ','B','u','i','l','d','e','r',0}

Definition at line 63 of file qcap_main.c.

◆ wCaptGraphBuilder2

const WCHAR wCaptGraphBuilder2[]
static
Initial value:
=
{'C','a','p','t','u','r','e',' ','G','r','a','p','h',' ','B','u','i','l','d','e','r','2',0}

Definition at line 65 of file qcap_main.c.

◆ wFileWriter

const WCHAR wFileWriter[]
static
Initial value:
=
{'F','i','l','e',' ','W','r','i','t','e','r',0}

Definition at line 61 of file qcap_main.c.

◆ wInfPinTeeFilter

const WCHAR wInfPinTeeFilter[]
static
Initial value:
=
{'I','n','f','i','n','i','t','e',' ','P','i','n',' ','T','e','e',' ','F','i',
'l','t','e','r',0}

Definition at line 67 of file qcap_main.c.

◆ wSmartTeeFilter

const WCHAR wSmartTeeFilter[]
static
Initial value:
=
{'S','m','a','r','t',' ','T','e','e',' ','F','i','l','t','e','r',0}

Definition at line 70 of file qcap_main.c.

◆ wVFWCaptFilter

const WCHAR wVFWCaptFilter[]
static
Initial value:
=
{'V','F','W',' ','C','a','p','t','u','r','e',' ','F','i','l','t','e','r',0}

Definition at line 50 of file qcap_main.c.

◆ wVFWCaptFilterProp

const WCHAR wVFWCaptFilterProp[]
static
Initial value:
=
{'V','F','W',' ','C','a','p','t','u','r','e',' ','F','i','l','t','e','r',' ',
'P','r','o','p','e','r','t','y',' ','P','a','g','e',0}

Definition at line 52 of file qcap_main.c.