dplobby8.h revision 4b9d6701570cb98fd36e209314239d104ec584d3
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2003-2005 Raphael Junqueira
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* defined(__cplusplus) */
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * DirectPlay8Lobby defines
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DPL_MSGID_RECEIVE (0x0001 | DPL_MSGID_LOBBY)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DPL_MSGID_CONNECT (0x0002 | DPL_MSGID_LOBBY)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DPL_MSGID_DISCONNECT (0x0003 | DPL_MSGID_LOBBY)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DPL_MSGID_SESSION_STATUS (0x0004 | DPL_MSGID_LOBBY)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DPL_MSGID_CONNECTION_SETTINGS (0x0005 | DPL_MSGID_LOBBY)
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * DirectPlay8Lobby structures Typedefs
af062818b47340eef15700d2f0211576ba3506eevboxsync} DPL_CONNECTION_SETTINGS, *PDPL_CONNECTION_SETTINGS;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _DPL_CONNECT_INFO {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _DPL_PROGRAM_DESC {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _DPL_MESSAGE_CONNECT {
af062818b47340eef15700d2f0211576ba3506eevboxsync} DPL_MESSAGE_CONNECTION_SETTINGS, *PDPL_MESSAGE_CONNECTION_SETTINGS;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _DPL_MESSAGE_RECEIVE {
af062818b47340eef15700d2f0211576ba3506eevboxsync} DPL_MESSAGE_SESSION_STATUS, *PDPL_MESSAGE_SESSION_STATUS;
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * Predeclare the interfaces
af062818b47340eef15700d2f0211576ba3506eevboxsyncDEFINE_GUID(CLSID_DirectPlay8LobbiedApplication, 0x667955ad,0x6b3b,0x43ca,0xb9,0x49,0xbc,0x69,0xb5,0xba,0xff,0x7f);
af062818b47340eef15700d2f0211576ba3506eevboxsyncDEFINE_GUID(CLSID_DirectPlay8LobbyClient, 0x3b2b6775,0x70b6,0x45af,0x8d,0xea,0xa2,0x09,0xc6,0x95,0x59,0xf3);
af062818b47340eef15700d2f0211576ba3506eevboxsyncDEFINE_GUID(IID_IDirectPlay8LobbiedApplication, 0x819074a3,0x16c,0x11d3,0xae,0x14,0x00,0x60,0x97,0xb0,0x14,0x11);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct IDirectPlay8LobbiedApplication *PDIRECTPLAY8LOBBIEDAPPLICATION;
af062818b47340eef15700d2f0211576ba3506eevboxsyncDEFINE_GUID(IID_IDirectPlay8LobbyClient, 0x819074a2,0x16c,0x11d3,0xae,0x14,0x00,0x60,0x97,0xb0,0x14,0x11);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct IDirectPlay8LobbyClient *PDIRECTPLAY8LOBBYCLIENT;
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * IDirectPlay8LobbiedApplication interface
af062818b47340eef15700d2f0211576ba3506eevboxsyncDECLARE_INTERFACE_(IDirectPlay8LobbiedApplication,IUnknown)
af062818b47340eef15700d2f0211576ba3506eevboxsync /*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync /*** IDirectPlay8LobbiedApplication methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(Initialize)(THIS_ CONST PVOID pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, DPNHANDLE* CONST pdpnhConnection, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(RegisterProgram)(THIS_ PDPL_PROGRAM_DESC pdplProgramDesc, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(UnRegisterProgram)(THIS_ GUID* pguidApplication, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(Send)(THIS_ CONST DPNHANDLE hConnection, BYTE* CONST pBuffer, CONST DWORD pBufferSize, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(SetAppAvailable)(THIS_ CONST BOOL fAvailable, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(UpdateStatus)(THIS_ CONST DPNHANDLE hConnection, CONST DWORD dwStatus, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(GetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, DWORD* pdwInfoSize, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(SetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, CONST DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->lpVtbl->AddRef(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_Release(p) (p)->lpVtbl->Release(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IDirectPlay8LobbiedApplication methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->lpVtbl->Initialize(p,a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->lpVtbl->RegisterProgram(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->lpVtbl->UnRegisterProgram(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->lpVtbl->SetAppAvailable(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->lpVtbl->UpdateStatus(p,a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->lpVtbl->Close(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->AddRef()
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_Release(p) (p)->Release()
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IDirectPlay8LobbiedApplication methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->Initialize(a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->RegisterProgram(a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->UnRegisterProgram(a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->SetAppAvailable(a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->UpdateStatus(a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->Close(a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * IDirectPlay8LobbyClient interface
af062818b47340eef15700d2f0211576ba3506eevboxsyncDECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown)
af062818b47340eef15700d2f0211576ba3506eevboxsync /*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync /*** IDirectPlay8LobbyClient methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(Initialize)(THIS_ CONST PVOID pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(EnumLocalPrograms)(THIS_ GUID* CONST pGuidApplication, BYTE* CONST pEnumData, DWORD* CONST pdwEnumData, DWORD* CONST pdwItems, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(ConnectApplication)(THIS_ DPL_CONNECT_INFO* CONST pdplConnectionInfo, CONST PVOID pvConnectionContext, DPNHANDLE* CONST hApplication, CONST DWORD dwTimeOut, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(Send)(THIS_ CONST DPNHANDLE hConnection, BYTE* CONST pBuffer, CONST DWORD pBufferSize, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(ReleaseApplication)(THIS_ CONST DPNHANDLE hConnection, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(GetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, DWORD* pdwInfoSize, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync STDMETHOD(SetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, CONST DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, CONST DWORD dwFlags) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_AddRef(p) (p)->lpVtbl->AddRef(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_Release(p) (p)->lpVtbl->Release(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IDirectPlay8LobbyClient methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->lpVtbl->EnumLocalPrograms(p,a,b,c,d,e)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->lpVtbl->ConnectApplication(p,a,b,c,d,e)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->lpVtbl->ReleaseApplication(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_Close(p,a) (p)->lpVtbl->Close(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_AddRef(p) (p)->AddRef()
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_Release(p) (p)->Release()
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IDirectPlay8LobbyClient methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->EnumLocalPrograms(a,b,c,d,e)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->ConnectApplication(a,b,c,d,e)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->ReleaseApplication(a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_Close(p,a) (p)->Close(a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Export functions */