Commit 8db3669d authored by Alexandre Julliard's avatar Alexandre Julliard

dmcompos: Convert dll registration to the IRegistrar mechanism.

parent fde44df4
......@@ -6,9 +6,10 @@ C_SRCS = \
chordmaptrack.c \
composer.c \
dmcompos_main.c \
regsvr.c \
signposttrack.c
IDL_R_SRCS = dmcompos.idl
RC_SRCS = version.rc
@MAKE_DLL_RULES@
/*
* COM Classes for dmcompos
*
* 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.DirectMusicChordMap.1"),
vi_progid("Microsoft.DirectMusicChordMap"),
uuid(d2ac288f-b39b-11d1-8704-00600893b1bd)
]
coclass DirectMusicChordMap { interface IDirectMusicChordMap; }
[
threading(both),
progid("Microsoft.DirectMusicComposer.1"),
vi_progid("Microsoft.DirectMusicComposer"),
uuid(d2ac2890-b39b-11d1-8704-00600893b1bd)
]
coclass DirectMusicComposer { interface IDirectMusicComposer; }
[
threading(both),
progid("Microsoft.DirectMusicChordMapTrack.1"),
vi_progid("Microsoft.DirectMusicChordMapTrack"),
uuid(d2ac2896-b39b-11d1-8704-00600893b1bd)
]
coclass DirectMusicChordMapTrack { interface IDirectMusicChordMapTrack; }
[
threading(both),
progid("Microsoft.DirectMusicTemplate.1"),
vi_progid("Microsoft.DirectMusicTemplate"),
uuid(d30bcc65-60e8-11d1-a7ce-00a0c913f73c)
]
coclass DirectMusicTemplate { interface IDirectMusicTemplate; }
[
threading(both),
progid("Microsoft.DirectMusicSignPostTrack.1"),
vi_progid("Microsoft.DirectMusicSignPostTrack"),
uuid(f17e8672-c3b4-11d1-870b-00600893b1bd)
]
coclass DirectMusicSignPostTrack { interface IDirectMusicSignPostTrack; }
......@@ -21,9 +21,11 @@
#include "wine/port.h"
#include "dmcompos_private.h"
#include "rpcproxy.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmcompos);
static HINSTANCE instance;
LONG DMCOMPOS_refCount = 0;
typedef struct {
......@@ -289,6 +291,7 @@ static IClassFactoryImpl SignPostTrack_CF = {&SignPostTrackCF_Vtbl};
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
/* FIXME: Initialisation */
}
......@@ -343,6 +346,21 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) {
return CLASS_E_CLASSNOTAVAILABLE;
}
/***********************************************************************
* DllRegisterServer (DMCOMPOS.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance, NULL );
}
/***********************************************************************
* DllUnregisterServer (DMCOMPOS.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance, NULL );
}
/******************************************************************
* Helper functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment