2003-04-08 05:56:04 +02:00
|
|
|
/* DirectPlay NAT Helper Past Main
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Rok Mandeljc
|
|
|
|
*
|
2007-05-30 12:54:07 +02:00
|
|
|
* This program 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.
|
2003-04-08 05:56:04 +02:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-05-30 12:54:07 +02:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2003-04-08 05:56:04 +02:00
|
|
|
*
|
2007-05-30 12:54:07 +02:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-04-08 05:56:04 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2003-04-08 05:56:04 +02:00
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
2005-12-07 12:51:39 +01:00
|
|
|
#include "objbase.h"
|
2003-04-08 05:56:04 +02:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(dpnhpast);
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* DllMain
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
|
|
{
|
2006-09-29 01:19:00 +02:00
|
|
|
TRACE("(%p, %d, %p)\n",hinstDLL,fdwReason,lpvReserved);
|
2003-04-08 05:56:04 +02:00
|
|
|
|
|
|
|
if (fdwReason == DLL_PROCESS_ATTACH)
|
|
|
|
{
|
2003-06-30 22:53:48 +02:00
|
|
|
DisableThreadLibraryCalls(hinstDLL);
|
2003-04-08 05:56:04 +02:00
|
|
|
/* FIXME: Initialisation */
|
|
|
|
}
|
|
|
|
else if (fdwReason == DLL_PROCESS_DETACH)
|
|
|
|
{
|
|
|
|
/* FIXME: Cleanup */
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* DirectPlayNATHelpCreate (DPNHPAST.1)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2008-04-12 21:13:59 +02:00
|
|
|
HRESULT WINAPI DirectPlayNATHelpCreate(LPCGUID pIID, PVOID *ppvInterface)
|
2003-04-08 05:56:04 +02:00
|
|
|
{
|
2008-04-12 21:13:59 +02:00
|
|
|
TRACE("(%p, %p) stub\n", pIID, ppvInterface);
|
|
|
|
return E_NOTIMPL;
|
2003-04-08 05:56:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************
|
2005-08-10 15:02:43 +02:00
|
|
|
* DllRegisterServer (DPNHPAST.@)
|
2003-04-08 05:56:04 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllRegisterServer(void)
|
2003-04-08 05:56:04 +02:00
|
|
|
{
|
|
|
|
FIXME(":stub\n");
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************
|
2005-08-10 15:02:43 +02:00
|
|
|
* DllCanUnloadNow (DPNHPAST.@)
|
2003-04-08 05:56:04 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllCanUnloadNow(void)
|
2003-04-08 05:56:04 +02:00
|
|
|
{
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************
|
2005-08-10 15:02:43 +02:00
|
|
|
* DllGetClassObject (DPNHPAST.@)
|
2003-04-08 05:56:04 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
|
2003-04-08 05:56:04 +02:00
|
|
|
{
|
|
|
|
FIXME(":stub\n");
|
2003-05-06 02:15:03 +02:00
|
|
|
return E_FAIL;
|
2003-04-08 05:56:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************
|
2005-08-10 15:02:43 +02:00
|
|
|
* DllUnregisterServer (DPNHPAST.@)
|
2003-04-08 05:56:04 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2005-08-08 19:35:28 +02:00
|
|
|
HRESULT WINAPI DllUnregisterServer(void)
|
2003-04-08 05:56:04 +02:00
|
|
|
{
|
|
|
|
FIXME(":stub\n");
|
|
|
|
return S_OK;
|
|
|
|
}
|