Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
46911cf9
Commit
46911cf9
authored
Jan 31, 2019
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite: Register MFReadWriteClassFactory interface.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7f6ffbfc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
1 deletion
+45
-1
Makefile.in
dlls/mfreadwrite/Makefile.in
+3
-0
main.c
dlls/mfreadwrite/main.c
+15
-1
mf_classes.idl
dlls/mfreadwrite/mf_classes.idl
+25
-0
mfreadwrite.spec
dlls/mfreadwrite/mfreadwrite.spec
+2
-0
No files found.
dlls/mfreadwrite/Makefile.in
View file @
46911cf9
MODULE
=
mfreadwrite.dll
IMPORTLIB
=
mfreadwrite
IMPORTS
=
mfuuid uuid
C_SRCS
=
\
main.c
IDL_SRCS
=
mf_classes.idl
dlls/mfreadwrite/main.c
View file @
46911cf9
...
...
@@ -24,13 +24,16 @@
#include "windef.h"
#include "winbase.h"
#include "initguid.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "mfreadwrite.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mfplat
);
static
HINSTANCE
mfinstance
;
BOOL
WINAPI
DllMain
(
HINSTANCE
instance
,
DWORD
reason
,
LPVOID
reserved
)
{
switch
(
reason
)
...
...
@@ -38,6 +41,7 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved)
case
DLL_WINE_PREATTACH
:
return
FALSE
;
/* prefer native version */
case
DLL_PROCESS_ATTACH
:
mfinstance
=
instance
;
DisableThreadLibraryCalls
(
instance
);
break
;
}
...
...
@@ -65,6 +69,16 @@ HRESULT WINAPI DllCanUnloadNow(void)
return
S_FALSE
;
}
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
mfinstance
);
}
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
mfinstance
);
}
typedef
struct
_srcreader
{
IMFSourceReader
IMFSourceReader_iface
;
...
...
dlls/mfreadwrite/mf_classes.idl
0 → 100644
View file @
46911cf9
/*
*
*
Copyright
2019
Alistair
Leslie
-
Hughes
*
*
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
*/
#
pragma
makedep
register
[
threading
(
both
),
uuid
(
48
e2ed0f
-
98
c2
-
4
a37
-
bed5
-
166312
ddd83f
)
]
coclass
MFReadWriteClassFactory
{
interface
IMFReadWriteClassFactory
; }
dlls/mfreadwrite/mfreadwrite.spec
View file @
46911cf9
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stub MFCreateSinkWriterFromMediaSink
@ stub MFCreateSinkWriterFromURL
@ stdcall MFCreateSourceReaderFromByteStream(ptr ptr ptr)
...
...
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