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
025a84a1
Commit
025a84a1
authored
Dec 03, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Convert dll registration to the IRegistrar mechanism.
parent
8446f5c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
2 deletions
+62
-2
Makefile.in
dlls/amstream/Makefile.in
+3
-2
amstream_classes.idl
dlls/amstream/amstream_classes.idl
+40
-0
main.c
dlls/amstream/main.c
+19
-0
regsvr.c
dlls/amstream/regsvr.c
+0
-0
No files found.
dlls/amstream/Makefile.in
View file @
025a84a1
...
@@ -5,8 +5,9 @@ C_SRCS = \
...
@@ -5,8 +5,9 @@ C_SRCS = \
amstream.c
\
amstream.c
\
main.c
\
main.c
\
mediastream.c
\
mediastream.c
\
mediastreamfilter.c
\
mediastreamfilter.c
regsvr.c
IDL_R_SRCS
=
amstream_classes.idl
RC_SRCS
=
version.rc
RC_SRCS
=
version.rc
...
...
dlls/amstream/amstream_classes.idl
0 → 100644
View file @
025a84a1
/*
*
COM
Classes
for
amstream
*
*
Copyright
2010
Alexandre
Julliard
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
; without even the implied warranty of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
[
helpstring
(
"SFilter Class"
),
threading
(
both
),
uuid
(
49
c47ce0
-
9b
a4
-
11
d0
-
8212
-
00
c04fc32c45
)
]
coclass
MediaStreamFilter
{
interface
IMediaStreamFilter
; }
[
helpstring
(
"Stream Class"
),
threading
(
both
),
uuid
(
49
c47ce4
-
9b
a4
-
11
d0
-
8212
-
00
c04fc32c45
)
]
coclass
AMDirectDrawStream
{
interface
IAMMultiMediaStream
; }
[
helpstring
(
"MMStream Class"
),
threading
(
both
),
uuid
(
49
c47ce5
-
9b
a4
-
11
d0
-
8212
-
00
c04fc32c45
)
]
coclass
AMMultiMediaStream
{
interface
IAMMultiMediaStream
; }
dlls/amstream/main.c
View file @
025a84a1
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include "winerror.h"
#include "winerror.h"
#include "ole2.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "amstream_private.h"
#include "amstream_private.h"
#include "amstream.h"
#include "amstream.h"
...
@@ -40,6 +41,7 @@
...
@@ -40,6 +41,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
amstream
);
WINE_DEFAULT_DEBUG_CHANNEL
(
amstream
);
static
HINSTANCE
instance
;
static
DWORD
dll_ref
=
0
;
static
DWORD
dll_ref
=
0
;
/* For the moment, do nothing here. */
/* For the moment, do nothing here. */
...
@@ -47,6 +49,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
...
@@ -47,6 +49,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
{
switch
(
fdwReason
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
DisableThreadLibraryCalls
(
hInstDLL
);
break
;
break
;
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
...
@@ -207,3 +210,19 @@ HRESULT WINAPI DllCanUnloadNow(void)
...
@@ -207,3 +210,19 @@ HRESULT WINAPI DllCanUnloadNow(void)
{
{
return
dll_ref
!=
0
?
S_FALSE
:
S_OK
;
return
dll_ref
!=
0
?
S_FALSE
:
S_OK
;
}
}
/***********************************************************************
* DllRegisterServer (AMSTREAM.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
instance
,
NULL
);
}
/***********************************************************************
* DllUnregisterServer (AMSTREAM.@)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
instance
,
NULL
);
}
dlls/amstream/regsvr.c
deleted
100644 → 0
View file @
8446f5c0
This diff is collapsed.
Click to expand it.
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