Commit dda5d938 authored by Alexandre Julliard's avatar Alexandre Julliard

oledb32: Convert dll registration to the IRegistrar mechanism.

parent 822d7b6e
...@@ -4,9 +4,10 @@ IMPORTS = uuid oleaut32 ole32 user32 advapi32 ...@@ -4,9 +4,10 @@ IMPORTS = uuid oleaut32 ole32 user32 advapi32
C_SRCS = \ C_SRCS = \
convert.c \ convert.c \
main.c \ main.c
regsvr.c
IDL_I_SRCS = convert.idl IDL_I_SRCS = convert.idl
IDL_R_SRCS = oledb32_classes.idl
@MAKE_DLL_RULES@ @MAKE_DLL_RULES@
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "ole2.h" #include "ole2.h"
#include "rpcproxy.h"
#include "initguid.h" #include "initguid.h"
#include "msdaguid.h" #include "msdaguid.h"
...@@ -36,11 +37,14 @@ ...@@ -36,11 +37,14 @@
WINE_DEFAULT_DEBUG_CHANNEL(oledb); WINE_DEFAULT_DEBUG_CHANNEL(oledb);
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID lpv) BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID lpv)
{ {
switch(reason) switch(reason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
instance = hinst;
DisableThreadLibraryCalls(hinst); DisableThreadLibraryCalls(hinst);
break; break;
...@@ -142,3 +146,19 @@ HRESULT WINAPI DllCanUnloadNow(void) ...@@ -142,3 +146,19 @@ HRESULT WINAPI DllCanUnloadNow(void)
{ {
return S_FALSE; return S_FALSE;
} }
/***********************************************************************
* DllRegisterServer
*/
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( instance, NULL );
}
/***********************************************************************
* DllUnregisterServer
*/
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( instance, NULL );
}
/*
* COM Classes for oledb32
*
* 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("OLE DB Data Conversion Library"),
threading(both),
progid("MSDADC.1"),
vi_progid("MSDADC"),
uuid(c8b522d1-5cf3-11ce-ade5-00aa0044773d)
]
coclass OLEDB_CONVERSIONLIBRARY
{
interface IDataConvert;
interface IDCInfo;
}
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