mtxdm: Implement GetDispenserManager.

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 2017-04-10 03:59:45 +00:00 committed by Alexandre Julliard
parent 0636249b0e
commit 3abb995842
7 changed files with 80 additions and 0 deletions

2
configure vendored
View File

@ -1332,6 +1332,7 @@ enable_msxml2
enable_msxml3
enable_msxml4
enable_msxml6
enable_mtxdm
enable_ncrypt
enable_nddeapi
enable_ndis_sys
@ -18213,6 +18214,7 @@ wine_fn_config_dll msxml3 enable_msxml3 clean
wine_fn_config_test dlls/msxml3/tests msxml3_test clean
wine_fn_config_dll msxml4 enable_msxml4 clean
wine_fn_config_dll msxml6 enable_msxml6 clean
wine_fn_config_dll mtxdm enable_mtxdm
wine_fn_config_dll ncrypt enable_ncrypt
wine_fn_config_dll nddeapi enable_nddeapi implib
wine_fn_config_dll ndis.sys enable_ndis_sys

View File

@ -3247,6 +3247,7 @@ WINE_CONFIG_DLL(msxml3,,[clean])
WINE_CONFIG_TEST(dlls/msxml3/tests,[clean])
WINE_CONFIG_DLL(msxml4,,[clean])
WINE_CONFIG_DLL(msxml6,,[clean])
WINE_CONFIG_DLL(mtxdm)
WINE_CONFIG_DLL(ncrypt)
WINE_CONFIG_DLL(nddeapi,,[implib])
WINE_CONFIG_DLL(ndis.sys)

5
dlls/mtxdm/Makefile.in Normal file
View File

@ -0,0 +1,5 @@
MODULE = mtxdm.dll
IMPORTS = uuid ole32
C_SRCS = \
mtxdm_main.c

1
dlls/mtxdm/mtxdm.spec Normal file
View File

@ -0,0 +1 @@
@ cdecl GetDispenserManager(ptr)

36
dlls/mtxdm/mtxdm_main.c Normal file
View File

@ -0,0 +1,36 @@
/*
* Copyright (C) 2017 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
*/
#include "config.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "comsvcs.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(comsvcs);
HRESULT CDECL GetDispenserManager(IDispenserManager **dispenser)
{
TRACE("%p\n", dispenser);
return CoCreateInstance( &CLSID_DispenserManager, NULL, CLSCTX_ALL, &IID_IDispenserManager, (void**)dispenser);
}

View File

@ -513,6 +513,7 @@ HEADER_SRCS = \
msxml2did.h \
msxml6did.h \
msxmldid.h \
mtxdm.h \
nb30.h \
ncrypt.h \
ndrtypes.h \

34
include/mtxdm.h Normal file
View File

@ -0,0 +1,34 @@
/*
* Copyright (C) 2017 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
*/
#ifndef __MTXDM_H__
#define __MTXDM_H__
#include "comsvcs.h"
#ifdef __cplusplus
extern "C" {
#endif
HRESULT CDECL GetDispenserManager(IDispenserManager**);
#ifdef __cplusplus
}
#endif
#endif