mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 19:14:09 +00:00
dplayx: Basic implementation of dpwsockx.dll, needed by dplayx.
This commit is contained in:
parent
4a4e5f269d
commit
9d2a1e8adc
|
@ -257,6 +257,7 @@ ALL_MAKEFILES = \
|
||||||
dlls/dpnet/Makefile \
|
dlls/dpnet/Makefile \
|
||||||
dlls/dpnhpast/Makefile \
|
dlls/dpnhpast/Makefile \
|
||||||
dlls/dpnlobby/Makefile \
|
dlls/dpnlobby/Makefile \
|
||||||
|
dlls/dpwsockx/Makefile \
|
||||||
dlls/dsound/Makefile \
|
dlls/dsound/Makefile \
|
||||||
dlls/dsound/tests/Makefile \
|
dlls/dsound/tests/Makefile \
|
||||||
dlls/dssenh/Makefile \
|
dlls/dssenh/Makefile \
|
||||||
|
@ -688,6 +689,7 @@ dlls/dpnaddr/Makefile: dlls/dpnaddr/Makefile.in dlls/Makedll.rules
|
||||||
dlls/dpnet/Makefile: dlls/dpnet/Makefile.in dlls/Makedll.rules
|
dlls/dpnet/Makefile: dlls/dpnet/Makefile.in dlls/Makedll.rules
|
||||||
dlls/dpnhpast/Makefile: dlls/dpnhpast/Makefile.in dlls/Makedll.rules
|
dlls/dpnhpast/Makefile: dlls/dpnhpast/Makefile.in dlls/Makedll.rules
|
||||||
dlls/dpnlobby/Makefile: dlls/dpnlobby/Makefile.in dlls/Makedll.rules
|
dlls/dpnlobby/Makefile: dlls/dpnlobby/Makefile.in dlls/Makedll.rules
|
||||||
|
dlls/dpwsockx/Makefile: dlls/dpwsockx/Makefile.in dlls/Makedll.rules
|
||||||
dlls/dsound/Makefile: dlls/dsound/Makefile.in dlls/Makedll.rules
|
dlls/dsound/Makefile: dlls/dsound/Makefile.in dlls/Makedll.rules
|
||||||
dlls/dsound/tests/Makefile: dlls/dsound/tests/Makefile.in dlls/Maketest.rules
|
dlls/dsound/tests/Makefile: dlls/dsound/tests/Makefile.in dlls/Maketest.rules
|
||||||
dlls/dssenh/Makefile: dlls/dssenh/Makefile.in dlls/Makedll.rules
|
dlls/dssenh/Makefile: dlls/dssenh/Makefile.in dlls/Makedll.rules
|
||||||
|
|
3
configure
vendored
3
configure
vendored
|
@ -21941,6 +21941,8 @@ ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
|
||||||
|
|
||||||
ac_config_files="$ac_config_files dlls/dpnlobby/Makefile"
|
ac_config_files="$ac_config_files dlls/dpnlobby/Makefile"
|
||||||
|
|
||||||
|
ac_config_files="$ac_config_files dlls/dpwsockx/Makefile"
|
||||||
|
|
||||||
ac_config_files="$ac_config_files dlls/dsound/Makefile"
|
ac_config_files="$ac_config_files dlls/dsound/Makefile"
|
||||||
|
|
||||||
ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
|
ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
|
||||||
|
@ -23248,6 +23250,7 @@ do
|
||||||
"dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
|
"dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
|
||||||
"dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
|
"dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
|
||||||
"dlls/dpnlobby/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnlobby/Makefile" ;;
|
"dlls/dpnlobby/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnlobby/Makefile" ;;
|
||||||
|
"dlls/dpwsockx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpwsockx/Makefile" ;;
|
||||||
"dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
|
"dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
|
||||||
"dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
|
"dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
|
||||||
"dlls/dssenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dssenh/Makefile" ;;
|
"dlls/dssenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dssenh/Makefile" ;;
|
||||||
|
|
|
@ -1801,6 +1801,7 @@ AC_CONFIG_FILES([dlls/dpnaddr/Makefile])
|
||||||
AC_CONFIG_FILES([dlls/dpnet/Makefile])
|
AC_CONFIG_FILES([dlls/dpnet/Makefile])
|
||||||
AC_CONFIG_FILES([dlls/dpnhpast/Makefile])
|
AC_CONFIG_FILES([dlls/dpnhpast/Makefile])
|
||||||
AC_CONFIG_FILES([dlls/dpnlobby/Makefile])
|
AC_CONFIG_FILES([dlls/dpnlobby/Makefile])
|
||||||
|
AC_CONFIG_FILES([dlls/dpwsockx/Makefile])
|
||||||
AC_CONFIG_FILES([dlls/dsound/Makefile])
|
AC_CONFIG_FILES([dlls/dsound/Makefile])
|
||||||
AC_CONFIG_FILES([dlls/dsound/tests/Makefile])
|
AC_CONFIG_FILES([dlls/dsound/tests/Makefile])
|
||||||
AC_CONFIG_FILES([dlls/dssenh/Makefile])
|
AC_CONFIG_FILES([dlls/dssenh/Makefile])
|
||||||
|
|
|
@ -90,6 +90,7 @@ BASEDIRS = \
|
||||||
dpnet \
|
dpnet \
|
||||||
dpnhpast \
|
dpnhpast \
|
||||||
dpnlobby \
|
dpnlobby \
|
||||||
|
dpwsockx \
|
||||||
dsound \
|
dsound \
|
||||||
dssenh \
|
dssenh \
|
||||||
dswave \
|
dswave \
|
||||||
|
|
13
dlls/dpwsockx/Makefile.in
Normal file
13
dlls/dpwsockx/Makefile.in
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
TOPSRCDIR = @top_srcdir@
|
||||||
|
TOPOBJDIR = ../..
|
||||||
|
SRCDIR = @srcdir@
|
||||||
|
VPATH = @srcdir@
|
||||||
|
MODULE = dpwsockx.dll
|
||||||
|
IMPORTS = kernel32
|
||||||
|
|
||||||
|
C_SRCS = \
|
||||||
|
dpwsockx_main.c
|
||||||
|
|
||||||
|
@MAKE_DLL_RULES@
|
||||||
|
|
||||||
|
@DEPENDENCIES@ # everything below this line is overwritten by make depend
|
3
dlls/dpwsockx/dpwsockx.spec
Normal file
3
dlls/dpwsockx/dpwsockx.spec
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
1 stdcall SPInit(ptr)
|
||||||
|
3 stub DPWS_GetEnumPort
|
||||||
|
4 stub DPWS_BuildIPMessageHeader
|
30
dlls/dpwsockx/dpwsockx_dll.h
Normal file
30
dlls/dpwsockx/dpwsockx_dll.h
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2008 Ismael Barros Barros
|
||||||
|
*
|
||||||
|
* 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 __WINE_DPWSOCKX_DLL_H
|
||||||
|
#define __WINE_DPWSOCKX_DLL_H
|
||||||
|
|
||||||
|
#include "windef.h"
|
||||||
|
#include "winbase.h"
|
||||||
|
#include "winnt.h"
|
||||||
|
#include "wine/dplaysp.h"
|
||||||
|
|
||||||
|
|
||||||
|
HRESULT WINAPI SPInit( LPSPINITDATA );
|
||||||
|
|
||||||
|
#endif /* __WINE_DPWSOCKX_DLL_H */
|
63
dlls/dpwsockx/dpwsockx_main.c
Normal file
63
dlls/dpwsockx/dpwsockx_main.c
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
/* Internet TCP/IP and IPX Connection For DirectPlay
|
||||||
|
*
|
||||||
|
* Copyright 2008 Ismael Barros Barros
|
||||||
|
*
|
||||||
|
* 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 "dpwsockx_dll.h"
|
||||||
|
#include "wine/debug.h"
|
||||||
|
#include "dplay.h"
|
||||||
|
#include "wine/dplaysp.h"
|
||||||
|
|
||||||
|
|
||||||
|
WINE_DEFAULT_DEBUG_CHANNEL(dplay);
|
||||||
|
|
||||||
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
|
{
|
||||||
|
TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
|
||||||
|
|
||||||
|
switch (fdwReason)
|
||||||
|
{
|
||||||
|
case DLL_WINE_PREATTACH:
|
||||||
|
return FALSE; /* prefer native version */
|
||||||
|
case DLL_PROCESS_ATTACH:
|
||||||
|
/* TODO: Initialization */
|
||||||
|
DisableThreadLibraryCalls(hinstDLL);
|
||||||
|
break;
|
||||||
|
case DLL_PROCESS_DETACH:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/******************************************************************
|
||||||
|
* SPInit (DPWSOCKX.1)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI SPInit( LPSPINITDATA lpspData )
|
||||||
|
{
|
||||||
|
/* TODO: Initialize callbacks and needed fields in lpspData */
|
||||||
|
return DPERR_UNSUPPORTED;
|
||||||
|
}
|
Loading…
Reference in a new issue