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
4e4ea3f0
Commit
4e4ea3f0
authored
Dec 03, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Convert dll registration to the IRegistrar mechanism.
parent
5bc129aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
2 deletions
+57
-2
Makefile.in
dlls/dmloader/Makefile.in
+3
-2
dmloader.idl
dlls/dmloader/dmloader.idl
+35
-0
dmloader_main.c
dlls/dmloader/dmloader_main.c
+19
-0
regsvr.c
dlls/dmloader/regsvr.c
+0
-0
No files found.
dlls/dmloader/Makefile.in
View file @
4e4ea3f0
...
@@ -7,8 +7,9 @@ C_SRCS = \
...
@@ -7,8 +7,9 @@ C_SRCS = \
debug.c
\
debug.c
\
dmloader_main.c
\
dmloader_main.c
\
loader.c
\
loader.c
\
loaderstream.c
\
loaderstream.c
regsvr.c
IDL_R_SRCS
=
dmloader.idl
RC_SRCS
=
version.rc
RC_SRCS
=
version.rc
...
...
dlls/dmloader/dmloader.idl
0 → 100644
View file @
4e4ea3f0
/*
*
COM
Classes
for
dmloader
*
*
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
*/
[
threading
(
both
),
progid
(
"Microsoft.DirectMusicLoader.1"
),
vi_progid
(
"Microsoft.DirectMusicLoader"
),
uuid
(
d2ac2892
-
b39b
-
11
d1
-
8704
-
00600893b1b
d
)
]
coclass
DirectMusicLoader
{
interface
IDirectMusicLoader
; }
[
threading
(
both
),
progid
(
"Microsoft.DirectMusicContainer.1"
),
vi_progid
(
"Microsoft.DirectMusicContainer"
),
uuid
(
9301
e380
-
1
f22
-
11
d3
-
8226
-
d2fa76255d47
)
]
coclass
DirectMusicContainer
{
interface
IDirectMusicContainer
; }
dlls/dmloader/dmloader_main.c
View file @
4e4ea3f0
...
@@ -18,9 +18,11 @@
...
@@ -18,9 +18,11 @@
*/
*/
#include "dmloader_private.h"
#include "dmloader_private.h"
#include "rpcproxy.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dmloader
);
WINE_DEFAULT_DEBUG_CHANNEL
(
dmloader
);
static
HINSTANCE
instance
;
LONG
dwDirectMusicContainer
=
0
;
LONG
dwDirectMusicContainer
=
0
;
LONG
dwDirectMusicLoader
=
0
;
LONG
dwDirectMusicLoader
=
0
;
...
@@ -29,6 +31,7 @@ LONG dwDirectMusicLoader = 0;
...
@@ -29,6 +31,7 @@ LONG dwDirectMusicLoader = 0;
*/
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
{
instance
=
hinstDLL
;
DisableThreadLibraryCalls
(
hinstDLL
);
DisableThreadLibraryCalls
(
hinstDLL
);
/* FIXME: Initialisation */
/* FIXME: Initialisation */
}
else
if
(
fdwReason
==
DLL_PROCESS_DETACH
)
{
}
else
if
(
fdwReason
==
DLL_PROCESS_DETACH
)
{
...
@@ -67,3 +70,19 @@ HRESULT WINAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
...
@@ -67,3 +70,19 @@ HRESULT WINAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
WARN
(
": no class found
\n
"
);
WARN
(
": no class found
\n
"
);
return
CLASS_E_CLASSNOTAVAILABLE
;
return
CLASS_E_CLASSNOTAVAILABLE
;
}
}
/***********************************************************************
* DllRegisterServer (DMLOADER.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
return
__wine_register_resources
(
instance
,
NULL
);
}
/***********************************************************************
* DllUnregisterServer (DMLOADER.@)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
return
__wine_unregister_resources
(
instance
,
NULL
);
}
dlls/dmloader/regsvr.c
deleted
100644 → 0
View file @
5bc129aa
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