Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
58468ef1
Commit
58468ef1
authored
Oct 19, 2010
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Define STRMBASE_DllMain.
parent
6a00d78b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
46 deletions
+41
-46
dllsetup.c
dlls/qcap/dllsetup.c
+0
-22
dllsetup.h
dlls/qcap/dllsetup.h
+0
-13
qcap_main.c
dlls/qcap/qcap_main.c
+1
-11
dllfunc.c
dlls/strmbase/dllfunc.c
+37
-0
strmbase.h
include/wine/strmbase.h
+3
-0
No files found.
dlls/qcap/dllsetup.c
View file @
58468ef1
...
...
@@ -159,25 +159,3 @@ HRESULT SetupRegisterServers(const FactoryTemplate * pList, int num,
hr
=
SetupRegisterAllClasses
(
pList
,
num
,
szFileName
,
FALSE
);
return
hr
;
}
/****************************************************************************
* SetupInitializeServers
*
* This function is table driven using the static members of the
* CFactoryTemplate class defined in the Dll.
*
* It calls the initialize function for any class in CFactoryTemplate with
* one defined.
*
****************************************************************************/
void
SetupInitializeServers
(
const
FactoryTemplate
*
pList
,
int
num
,
BOOL
bLoading
)
{
int
i
;
for
(
i
=
0
;
i
<
num
;
i
++
,
pList
++
)
{
if
(
pList
->
m_lpfnInit
)
pList
->
m_lpfnInit
(
bLoading
,
pList
->
m_ClsID
);
}
}
dlls/qcap/dllsetup.h
View file @
58468ef1
...
...
@@ -35,17 +35,4 @@
****************************************************************************/
extern
HRESULT
SetupRegisterServers
(
const
FactoryTemplate
*
pList
,
int
num
,
BOOL
bRegister
);
/****************************************************************************
* SetupInitializeServers
*
* This function is table driven using the static members of the
* CFactoryTemplate class defined in the Dll.
*
* It calls the initialize function for any class in CFactoryTemplate with
* one defined.
*
****************************************************************************/
extern
void
SetupInitializeServers
(
const
FactoryTemplate
*
pList
,
int
num
,
BOOL
bLoading
);
#endif
/* _QCAP_DLLSETUP_H_DEFINED */
dlls/qcap/qcap_main.c
View file @
58468ef1
...
...
@@ -154,17 +154,7 @@ int g_cTemplates = sizeof(g_Templates) / sizeof(g_Templates[0]);
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hInstDLL
);
SetupInitializeServers
(
g_Templates
,
g_cTemplates
,
TRUE
);
break
;
case
DLL_PROCESS_DETACH
:
SetupInitializeServers
(
g_Templates
,
g_cTemplates
,
FALSE
);
break
;
}
return
TRUE
;
return
STRMBASE_DllMain
(
hInstDLL
,
fdwReason
,
lpv
);
}
/***********************************************************************
...
...
dlls/strmbase/dllfunc.c
View file @
58468ef1
...
...
@@ -91,3 +91,40 @@ HRESULT WINAPI AMovieDllRegisterServer2(BOOL bRegister)
return
hr
;
}
/****************************************************************************
* SetupInitializeServers
*
* This function is table driven using the static members of the
* CFactoryTemplate class defined in the Dll.
*
* It calls the initialize function for any class in CFactoryTemplate with
* one defined.
*
****************************************************************************/
static
void
SetupInitializeServers
(
const
FactoryTemplate
*
pList
,
int
num
,
BOOL
bLoading
)
{
int
i
;
for
(
i
=
0
;
i
<
num
;
i
++
,
pList
++
)
{
if
(
pList
->
m_lpfnInit
)
pList
->
m_lpfnInit
(
bLoading
,
pList
->
m_ClsID
);
}
}
BOOL
WINAPI
STRMBASE_DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hInstDLL
);
SetupInitializeServers
(
g_Templates
,
g_cTemplates
,
TRUE
);
break
;
case
DLL_PROCESS_DETACH
:
SetupInitializeServers
(
g_Templates
,
g_cTemplates
,
FALSE
);
break
;
}
return
TRUE
;
}
include/wine/strmbase.h
View file @
58468ef1
...
...
@@ -312,3 +312,6 @@ typedef struct tagFactoryTemplate {
HRESULT
WINAPI
AMovieDllRegisterServer2
(
BOOL
bRegister
);
HRESULT
WINAPI
AMovieSetupRegisterFilter2
(
const
AMOVIESETUP_FILTER
const
*
pFilter
,
IFilterMapper2
*
pIFM2
,
BOOL
bRegister
);
/* Dll Functions */
BOOL
WINAPI
STRMBASE_DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment