msdasql: Register MSDASQL interfaces.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2021-10-25 20:34:30 +11:00 committed by Alexandre Julliard
parent 48cc6ce421
commit a5cee97c7e
5 changed files with 73 additions and 0 deletions

View File

@ -5,3 +5,7 @@ EXTRADLLFLAGS = -Wb,--prefer-native
C_SRCS = \
msdasql_main.c
RC_SRCS = msdasql.rc
IDL_SRCS = msdasql_classes.idl

20
dlls/msdasql/msdasql.rc Normal file
View File

@ -0,0 +1,20 @@
/*
* Copyright 2018 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
*/
/* @makedep: msdasql.rgs */
2 WINE_REGISTRY msdasql.rgs

11
dlls/msdasql/msdasql.rgs Normal file
View File

@ -0,0 +1,11 @@
HKCR
{
NoRemove CLSID
{
NoRemove {c8b522cb-5cf3-11ce-ade5-00aa0044773d} = s 'MSDASQL'
{
val 'OLEDB_SERVICES' = d 4294967295
'OLE DB Provider' = s 'WINE OLE DB Provider for ODBC Drivers'
}
}
}

View File

@ -0,0 +1,35 @@
/*
* 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
[
progid("MSDASQL.1"),
vi_progid("MSDASQL"),
threading(both),
uuid(c8b522cb-5cf3-11ce-ade5-00aa0044773d)
]
coclass MSDASQL { }
[
progid("MSDASQLEnumerator.1"),
vi_progid("MSDASQLEnumerator"),
threading(both),
uuid(c8b522cd-5cf3-11ce-ade5-00aa0044773d)
]
coclass MSDASQLEnumerator { }

View File

@ -26,6 +26,9 @@
#include "rpcproxy.h"
#include "wine/debug.h"
#include "initguid.h"
#include "msdasql.h"
WINE_DEFAULT_DEBUG_CHANNEL(msdasql);
static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppv)