Add a stub implementation of mprapi.dll.

This commit is contained in:
Dmitry Timoshkov 2006-04-27 20:52:12 +09:00 committed by Alexandre Julliard
parent 427e488ba1
commit d30975d576
9 changed files with 244 additions and 1 deletions

3
configure vendored

File diff suppressed because one or more lines are too long

View File

@ -1574,6 +1574,7 @@ dlls/mlang/tests/Makefile
dlls/mmdevldr.vxd/Makefile
dlls/monodebg.vxd/Makefile
dlls/mpr/Makefile
dlls/mprapi/Makefile
dlls/msacm32/Makefile
dlls/msacm32/tests/Makefile
dlls/msadp32.acm/Makefile

View File

@ -80,6 +80,7 @@ BASEDIRS = \
mmdevldr.vxd \
monodebg.vxd \
mpr \
mprapi \
msacm32 \
msadp32.acm \
mscms \
@ -496,6 +497,7 @@ IMPORT_LIBS = \
mapi32/libmapi32.$(IMPLIBEXT) \
mlang/libmlang.$(IMPLIBEXT) \
mpr/libmpr.$(IMPLIBEXT) \
mprapi/libmprapi.$(IMPLIBEXT) \
msacm32/libmsacm32.$(IMPLIBEXT) \
mscms/libmscms.$(IMPLIBEXT) \
msdmo/libmsdmo.$(IMPLIBEXT) \
@ -703,6 +705,9 @@ mlang/libmlang.$(IMPLIBEXT): mlang/mlang.spec $(WINEBUILD)
mpr/libmpr.$(IMPLIBEXT): mpr/mpr.spec $(WINEBUILD)
@cd mpr && $(MAKE) libmpr.$(IMPLIBEXT)
mprapi/libmprapi.$(IMPLIBEXT): mprapi/mprapi.spec $(WINEBUILD)
@cd mprapi && $(MAKE) libmprapi.$(IMPLIBEXT)
msacm32/libmsacm32.$(IMPLIBEXT): msacm32/msacm32.spec $(WINEBUILD)
@cd msacm32 && $(MAKE) libmsacm32.$(IMPLIBEXT)

2
dlls/mprapi/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
Makefile
libmprapi.def

14
dlls/mprapi/Makefile.in Normal file
View File

@ -0,0 +1,14 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = mprapi.dll
IMPORTLIB = libmprapi.$(IMPLIBEXT)
IMPORTS = kernel32
C_SRCS = \
mprapi.c
@MAKE_DLL_RULES@
### Dependencies:

52
dlls/mprapi/mprapi.c Normal file
View File

@ -0,0 +1,52 @@
/*
* Copyright (C) 2006 Dmitry Timoshkov
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "mprapi.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(mprapi);
/*****************************************************
* DllMain
*/
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
{
TRACE("(%p, %ld, %p)\n", hinst, reason, reserved);
switch(reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( hinst );
break;
}
return TRUE;
}
BOOL APIENTRY MprAdminIsServiceRunning(LPWSTR server)
{
FIXME("(%s): stub!\n", debugstr_w(server));
return FALSE;
}

132
dlls/mprapi/mprapi.spec Normal file
View File

@ -0,0 +1,132 @@
@ stub CompressPhoneNumber
@ stub MprAdminBufferFree
@ stub MprAdminConnectionClearStats
@ stub MprAdminConnectionEnum
@ stub MprAdminConnectionGetInfo
@ stub MprAdminDeregisterConnectionNotification
@ stub MprAdminDeviceEnum
@ stub MprAdminEstablishDomainRasServer
@ stub MprAdminGetErrorString
@ stub MprAdminGetPDCServer
@ stub MprAdminInterfaceConnect
@ stub MprAdminInterfaceCreate
@ stub MprAdminInterfaceDelete
@ stub MprAdminInterfaceDeviceGetInfo
@ stub MprAdminInterfaceDeviceSetInfo
@ stub MprAdminInterfaceDisconnect
@ stub MprAdminInterfaceEnum
@ stub MprAdminInterfaceGetCredentials
@ stub MprAdminInterfaceGetCredentialsEx
@ stub MprAdminInterfaceGetHandle
@ stub MprAdminInterfaceGetInfo
@ stub MprAdminInterfaceQueryUpdateResult
@ stub MprAdminInterfaceSetCredentials
@ stub MprAdminInterfaceSetCredentialsEx
@ stub MprAdminInterfaceSetInfo
@ stub MprAdminInterfaceTransportAdd
@ stub MprAdminInterfaceTransportGetInfo
@ stub MprAdminInterfaceTransportRemove
@ stub MprAdminInterfaceTransportSetInfo
@ stub MprAdminInterfaceUpdatePhonebookInfo
@ stub MprAdminInterfaceUpdateRoutes
@ stub MprAdminIsDomainRasServer
@ stdcall MprAdminIsServiceRunning(wstr)
@ stub MprAdminMIBBufferFree
@ stub MprAdminMIBEntryCreate
@ stub MprAdminMIBEntryDelete
@ stub MprAdminMIBEntryGet
@ stub MprAdminMIBEntryGetFirst
@ stub MprAdminMIBEntryGetNext
@ stub MprAdminMIBEntrySet
@ stub MprAdminMIBServerConnect
@ stub MprAdminMIBServerDisconnect
@ stub MprAdminPortClearStats
@ stub MprAdminPortDisconnect
@ stub MprAdminPortEnum
@ stub MprAdminPortGetInfo
@ stub MprAdminPortReset
@ stub MprAdminRegisterConnectionNotification
@ stub MprAdminSendUserMessage
@ stub MprAdminServerConnect
@ stub MprAdminServerDisconnect
@ stub MprAdminServerGetCredentials
@ stub MprAdminServerGetInfo
@ stub MprAdminServerSetCredentials
@ stub MprAdminTransportCreate
@ stub MprAdminTransportGetInfo
@ stub MprAdminTransportSetInfo
@ stub MprAdminUpgradeUsers
@ stub MprAdminUserClose
@ stub MprAdminUserGetInfo
@ stub MprAdminUserOpen
@ stub MprAdminUserRead
@ stub MprAdminUserReadProfFlags
@ stub MprAdminUserServerConnect
@ stub MprAdminUserServerDisconnect
@ stub MprAdminUserSetInfo
@ stub MprAdminUserWrite
@ stub MprAdminUserWriteProfFlags
@ stub MprConfigBufferFree
@ stub MprConfigGetFriendlyName
@ stub MprConfigGetGuidName
@ stub MprConfigInterfaceCreate
@ stub MprConfigInterfaceDelete
@ stub MprConfigInterfaceEnum
@ stub MprConfigInterfaceGetHandle
@ stub MprConfigInterfaceGetInfo
@ stub MprConfigInterfaceSetInfo
@ stub MprConfigInterfaceTransportAdd
@ stub MprConfigInterfaceTransportEnum
@ stub MprConfigInterfaceTransportGetHandle
@ stub MprConfigInterfaceTransportGetInfo
@ stub MprConfigInterfaceTransportRemove
@ stub MprConfigInterfaceTransportSetInfo
@ stub MprConfigServerBackup
@ stub MprConfigServerConnect
@ stub MprConfigServerDisconnect
@ stub MprConfigServerGetInfo
@ stub MprConfigServerInstall
@ stub MprConfigServerRefresh
@ stub MprConfigServerRestore
@ stub MprConfigTransportCreate
@ stub MprConfigTransportDelete
@ stub MprConfigTransportEnum
@ stub MprConfigTransportGetHandle
@ stub MprConfigTransportGetInfo
@ stub MprConfigTransportSetInfo
@ stub MprDomainQueryAccess
@ stub MprDomainQueryRasServer
@ stub MprDomainRegisterRasServer
@ stub MprDomainSetAccess
@ stub MprGetUsrParams
@ stub MprInfoBlockAdd
@ stub MprInfoBlockFind
@ stub MprInfoBlockQuerySize
@ stub MprInfoBlockRemove
@ stub MprInfoBlockSet
@ stub MprInfoCreate
@ stub MprInfoDelete
@ stub MprInfoDuplicate
@ stub MprInfoRemoveAll
@ stub MprPortSetUsage
@ stub MprSetupIpInIpInterfaceFriendlyNameCreate
@ stub MprSetupIpInIpInterfaceFriendlyNameDelete
@ stub MprSetupIpInIpInterfaceFriendlyNameEnum
@ stub MprSetupIpInIpInterfaceFriendlyNameFree
@ stub RasAdminBufferFree
@ stub RasAdminConnectionClearStats
@ stub RasAdminConnectionEnum
@ stub RasAdminConnectionGetInfo
@ stub RasAdminGetErrorString
@ stub RasAdminGetPDCServer
@ stub RasAdminIsServiceRunning
@ stub RasAdminPortClearStats
@ stub RasAdminPortDisconnect
@ stub RasAdminPortEnum
@ stub RasAdminPortGetInfo
@ stub RasAdminPortReset
@ stub RasAdminServerConnect
@ stub RasAdminServerDisconnect
@ stub RasAdminUserGetInfo
@ stub RasAdminUserSetInfo
@ stub RasPrivilegeAndCallBackNumber

View File

@ -180,6 +180,7 @@ WINDOWS_INCLUDES = \
mmddk.h \
mmreg.h \
mmsystem.h \
mprapi.h \
msacm.h \
msacmdlg.h \
msacmdrv.h \

35
include/mprapi.h Normal file
View File

@ -0,0 +1,35 @@
/*
* Copyright (C) 2006 Dmitry Timoshkov
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WINE_MPRAPI_H
#define __WINE_MPRAPI_H
#include <lmcons.h>
#include <ras.h>
#ifdef __cplusplus
extern "C" {
#endif
BOOL APIENTRY MprAdminIsServiceRunning(LPWSTR);
#ifdef __cplusplus
}
#endif
#endif /* __WINE_MPRAPI_H */