Commit 14374693 authored by Alexandre Julliard's avatar Alexandre Julliard

qedit: Convert dll registration to the IRegistrar mechanism.

parent 1c18430a
...@@ -4,7 +4,8 @@ IMPORTS = strmiids uuid oleaut32 ole32 advapi32 ...@@ -4,7 +4,8 @@ IMPORTS = strmiids uuid oleaut32 ole32 advapi32
C_SRCS = \ C_SRCS = \
main.c \ main.c \
mediadet.c \ mediadet.c \
regsvr.c \
samplegrabber.c samplegrabber.c
IDL_R_SRCS = qedit_classes.idl
@MAKE_DLL_RULES@ @MAKE_DLL_RULES@
...@@ -18,14 +18,18 @@ ...@@ -18,14 +18,18 @@
*/ */
#include "qedit_private.h" #include "qedit_private.h"
#include "rpcproxy.h"
#include "wine/debug.h" #include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(qedit); WINE_DEFAULT_DEBUG_CHANNEL(qedit);
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) 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:
...@@ -183,3 +187,19 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) ...@@ -183,3 +187,19 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*ppv = &(factory->ITF_IClassFactory); *ppv = &(factory->ITF_IClassFactory);
return S_OK; return S_OK;
} }
/***********************************************************************
* DllRegisterServer (QEDIT.@)
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance, NULL );
}
/***********************************************************************
* DllUnregisterServer (QEDIT.@)
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance, NULL );
}
/*
* COM Classes for qedit
*
* 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),
uuid(65bd0711-24d2-4ff7-9324-ed2e5d3abafa)
]
coclass MediaDet { interface IMediaDet; }
[
helpstring("Sample Grabber"),
threading(both),
uuid(c1f400a0-3f08-11d3-9f0b-006008039e37)
]
coclass SampleGrabber { interface ISampleGrabber; }
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