mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
dplay: dx8/dx9 support (missing includes).
- add directx9 support for dplay8.h and dpaddr.h - new file dplobby8.h
This commit is contained in:
parent
c75d0cdc8c
commit
db50e2d997
@ -117,6 +117,7 @@ WINDOWS_INCLUDES = \
|
||||
dplay.h \
|
||||
dplay8.h \
|
||||
dplobby.h \
|
||||
dplobby8.h \
|
||||
dsconf.h \
|
||||
dsdriver.h \
|
||||
dshow.h \
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003 Raphael Junqueira
|
||||
* Copyright (C) 2003-2005 Raphael Junqueira
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -26,7 +26,7 @@
|
||||
extern "C" {
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
|
||||
typedef REFIID DPNAREFIID;
|
||||
typedef struct sockaddr SOCKADDR;
|
||||
|
||||
/*****************************************************************************
|
||||
@ -55,12 +55,17 @@ typedef struct sockaddr SOCKADDR;
|
||||
#define DPNA_KEY_DEVICE_A "device"
|
||||
#define DPNA_KEY_FLOWCONTROL_A "flowcontrol"
|
||||
#define DPNA_KEY_HOSTNAME_A "hostname"
|
||||
#define DPNA_KEY_NAMEINFO_A "nameinfo"
|
||||
#define DPNA_KEY_PARITY_A "parity"
|
||||
#define DPNA_KEY_PHONENUMBER_A "phonenumber"
|
||||
#define DPNA_KEY_PORT_A "port"
|
||||
#define DPNA_KEY_PROCESSOR_A "processor"
|
||||
#define DPNA_KEY_PROGRAM_A "program"
|
||||
#define DPNA_KEY_PROVIDER_A "provider"
|
||||
#define DPNA_KEY_SCOPE_A "scope"
|
||||
#define DPNA_KEY_STOPBITS_A "stopbits"
|
||||
#define DPNA_KEY_TRAVERSALMODE_A "traversalmode"
|
||||
|
||||
#define DPNA_STOP_BITS_ONE_A "1"
|
||||
#define DPNA_STOP_BITS_ONE_FIVE_A "1.5"
|
||||
#define DPNA_STOP_BITS_TWO_A "2"
|
||||
@ -88,12 +93,16 @@ typedef struct sockaddr SOCKADDR;
|
||||
# define DPNA_KEY_DEVICE (const WCHAR []){ 'd','e','v','i','c','e',0 }
|
||||
# define DPNA_KEY_FLOWCONTROL (const WCHAR []){ 'f','l','o','w','c','o','n','t','r','o','l',0 }
|
||||
# define DPNA_KEY_HOSTNAME (const WCHAR []){ 'h','o','s','t','n','a','m','e',0 }
|
||||
# define DPNA_KEY_NAMEINFO (const WCHAR []){ 'n','a','m','e','i','n','f','o',0 }
|
||||
# define DPNA_KEY_PARITY (const WCHAR []){ 'p','a','r','i','t','y',0 }
|
||||
# define DPNA_KEY_PHONENUMBER (const WCHAR []){ 'p','h','o','n','e','n','u','m','b','e','r',0 }
|
||||
# define DPNA_KEY_PORT (const WCHAR []){ 'p','o','r','t',0 }
|
||||
# define DPNA_KEY_PROCESSOR (const WCHAR []){ 'p','r','o','c','e','s','s','o','r',0 }
|
||||
# define DPNA_KEY_PROGRAM (const WCHAR []){ 'p','r','o','g','r','a','m',0 }
|
||||
# define DPNA_KEY_PROVIDER (const WCHAR []){ 'p','r','o','v','i','d','e','r',0 }
|
||||
# define DPNA_KEY_SCOPE (const WCHAR []){ 's','c','o','p','e',0 }
|
||||
# define DPNA_KEY_STOPBITS (const WCHAR []){ 's','t','o','p','b','i','t','s',0 }
|
||||
# define DPNA_KEY_TRAVERSALMODE (const WCHAR []){ 't','r','a','v','e','r','s','a','l','m','o','d','e',0 }
|
||||
# define DPNA_STOP_BITS_ONE (const WCHAR []){ '1',0 }
|
||||
# define DPNA_STOP_BITS_ONE_FIVE (const WCHAR []){ '1','.','5',0 }
|
||||
# define DPNA_STOP_BITS_TWO (const WCHAR []){ '2',0 }
|
||||
@ -120,12 +129,16 @@ typedef struct sockaddr SOCKADDR;
|
||||
# define DPNA_KEY_DEVICE L"device"
|
||||
# define DPNA_KEY_FLOWCONTROL L"flowcontrol"
|
||||
# define DPNA_KEY_HOSTNAME L"hostname"
|
||||
# define DPNA_KEY_NAMEINFO_A L"nameinfo"
|
||||
# define DPNA_KEY_PARITY L"parity"
|
||||
# define DPNA_KEY_PHONENUMBER L"phonenumber"
|
||||
# define DPNA_KEY_PORT L"port"
|
||||
# define DPNA_KEY_PROCESSOR_A L"processor"
|
||||
# define DPNA_KEY_PROGRAM L"program"
|
||||
# define DPNA_KEY_PROVIDER L"provider"
|
||||
# define DPNA_KEY_SCOPE_A L"scope"
|
||||
# define DPNA_KEY_STOPBITS L"stopbits"
|
||||
# define DPNA_KEY_TRAVERSALMODE_A L"traversalmode"
|
||||
# define DPNA_STOP_BITS_ONE L"1"
|
||||
# define DPNA_STOP_BITS_ONE_FIVE L"1.5"
|
||||
# define DPNA_STOP_BITS_TWO L"2"
|
||||
@ -152,12 +165,16 @@ static const WCHAR DPNA_KEY_BAUD[] = { 'b','a','u','d',0 };
|
||||
static const WCHAR DPNA_KEY_DEVICE[] = { 'd','e','v','i','c','e',0 };
|
||||
static const WCHAR DPNA_KEY_FLOWCONTROL[] = { 'f','l','o','w','c','o','n','t','r','o','l',0 };
|
||||
static const WCHAR DPNA_KEY_HOSTNAME[] = { 'h','o','s','t','n','a','m','e',0 };
|
||||
static const WCHAR DPNA_KEY_NAMEINFO[] = { 'n','a','m','e','i','n','f','o',0 };
|
||||
static const WCHAR DPNA_KEY_PARITY[] = { 'p','a','r','i','t','y',0 };
|
||||
static const WCHAR DPNA_KEY_PHONENUMBER[] = { 'p','h','o','n','e','n','u','m','b','e','r',0 };
|
||||
static const WCHAR DPNA_KEY_PORT[] = { 'p','o','r','t',0 };
|
||||
static const WCHAR DPNA_KEY_PROCESSOR[] = { 'p','r','o','c','e','s','s','o','r',0 };
|
||||
static const WCHAR DPNA_KEY_PROGRAM[] = { 'p','r','o','g','r','a','m',0 };
|
||||
static const WCHAR DPNA_KEY_PROVIDER[] = { 'p','r','o','v','i','d','e','r',0 };
|
||||
static const WCHAR DPNA_KEY_SCOPE[] = { 's','c','o','p','e',0 };
|
||||
static const WCHAR DPNA_KEY_STOPBITS[] = { 's','t','o','p','b','i','t','s',0 };
|
||||
static const WCHAR DPNA_KEY_TRAVERSALMODE[] = { 't','r','a','v','e','r','s','a','l','m','o','d','e',0 };
|
||||
static const WCHAR DPNA_STOP_BITS_ONE[] = { '1',0 };
|
||||
static const WCHAR DPNA_STOP_BITS_ONE_FIVE[] = { '1','.','5',0 };
|
||||
static const WCHAR DPNA_STOP_BITS_TWO[] = { '2',0 };
|
||||
@ -330,6 +347,10 @@ DECLARE_INTERFACE_(IDirectPlay8AddressIP,IUnknown)
|
||||
#define IDirectPlay8AddressIP_GetAddress(p,a,b,c) (p)->GetAddress(a,b,c)
|
||||
#endif
|
||||
|
||||
/* Export functions */
|
||||
|
||||
HRESULT WINAPI DirectPlay8AddressCreate(CONST GUID* pcIID, LPVOID* ppvInterface, IUnknown* pUnknown);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
298
include/dplay8.h
298
include/dplay8.h
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2003 Raphael Junqueira
|
||||
* Copyright (C) 2003-2005 Raphael Junqueira
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -57,6 +57,9 @@ typedef DWORD DPNHANDLE, *PDPNHANDLE;
|
||||
#define DPN_MSGID_SEND_COMPLETE (DPN_MSGID_OFFSET | 0x0014)
|
||||
#define DPN_MSGID_SERVER_INFO (DPN_MSGID_OFFSET | 0x0015)
|
||||
#define DPN_MSGID_TERMINATE_SESSION (DPN_MSGID_OFFSET | 0x0016)
|
||||
#define DPN_MSGID_CREATE_THREAD (DPN_MSGID_OFFSET | 0x0017)
|
||||
#define DPN_MSGID_DESTROY_THREAD (DPN_MSGID_OFFSET | 0x0018)
|
||||
#define DPN_MSGID_NAT_RESOLVER_QUERY (DPN_MSGID_OFFSET | 0x0101)
|
||||
|
||||
/*****************************************************************************
|
||||
* DirectPlay8 Errors
|
||||
@ -146,55 +149,84 @@ typedef DWORD DPNHANDLE, *PDPNHANDLE;
|
||||
/*****************************************************************************
|
||||
* DirectPlay8 defines
|
||||
*/
|
||||
#define DPNOP_SYNC 0x80000000
|
||||
#define DPNADDPLAYERTOGROUP_SYNC DPNOP_SYNC
|
||||
#define DPNCANCEL_CONNECT 0x0001
|
||||
#define DPNCANCEL_ENUM 0x0002
|
||||
#define DPNCANCEL_SEND 0x0004
|
||||
#define DPNCANCEL_ALL_OPERATIONS 0x8000
|
||||
#define DPNCONNECT_SYNC DPNOP_SYNC
|
||||
#define DPNCONNECT_OKTOQUERYFORADDRESSING 0x0001
|
||||
#define DPNCREATEGROUP_SYNC DPNOP_SYNC
|
||||
#define DPNDESTROYGROUP_SYNC DPNOP_SYNC
|
||||
#define DPNENUM_PLAYERS 0x0001
|
||||
#define DPNENUM_GROUPS 0x0010
|
||||
#define DPNENUMHOSTS_SYNC DPNOP_SYNC
|
||||
#define DPNENUMHOSTS_OKTOQUERYFORADDRESSING 0x0001
|
||||
#define DPNENUMHOSTS_NOBROADCASTFALLBACK 0x0002
|
||||
#define DPNENUMSERVICEPROVIDERS_ALL 0x0001
|
||||
#define DPNGETSENDQUEUEINFO_PRIORITY_NORMAL 0x0001
|
||||
#define DPNGETSENDQUEUEINFO_PRIORITY_HIGH 0x0002
|
||||
#define DPNGETSENDQUEUEINFO_PRIORITY_LOW 0x0004
|
||||
#define DPNGROUP_AUTODESTRUCT 0x0001
|
||||
#define DPNHOST_OKTOQUERYFORADDRESSING 0x0001
|
||||
#define DPNINFO_NAME 0x0001
|
||||
#define DPNINFO_DATA 0x0002
|
||||
#define DPNINITIALIZE_DISABLEPARAMVAL 0x0001
|
||||
#define DPNLOBBY_REGISTER 0x0001
|
||||
#define DPNLOBBY_UNREGISTER 0x0002
|
||||
#define DPNPLAYER_LOCAL 0x0002
|
||||
#define DPNPLAYER_HOST 0x0004
|
||||
#define DPNREMOVEPLAYERFROMGROUP_SYNC DPNOP_SYNC
|
||||
#define DPNSEND_SYNC DPNOP_SYNC
|
||||
#define DPNSEND_NOCOPY 0x0001
|
||||
#define DPNSEND_NOCOMPLETE 0x0002
|
||||
#define DPNSEND_COMPLETEONPROCESS 0x0004
|
||||
#define DPNSEND_GUARANTEED 0x0008
|
||||
#define DPNSEND_NONSEQUENTIAL 0x0010
|
||||
#define DPNSEND_NOLOOPBACK 0x0020
|
||||
#define DPNSEND_PRIORITY_LOW 0x0040
|
||||
#define DPNSEND_PRIORITY_HIGH 0x0080
|
||||
#define DPNSESSION_CLIENT_SERVER 0x0001
|
||||
#define DPNSESSION_MIGRATE_HOST 0x0004
|
||||
#define DPNSESSION_NODPNSVR 0x0040
|
||||
#define DPNSESSION_REQUIREPASSWORD 0x0080
|
||||
#define DPNSETCLIENTINFO_SYNC DPNOP_SYNC
|
||||
#define DPNSETGROUPINFO_SYNC DPNOP_SYNC
|
||||
#define DPNSETPEERINFO_SYNC DPNOP_SYNC
|
||||
#define DPNSETSERVERINFO_SYNC DPNOP_SYNC
|
||||
#define DPNSPCAPS_SUPPORTSDPNSRV 0x0001
|
||||
#define DPNSPCAPS_SUPPORTSBROADCAST 0x0002
|
||||
#define DPNSPCAPS_SUPPORTSALLADAPTERS 0x0004
|
||||
#define DPNID_ALL_PLAYERS_GROUP 0
|
||||
#define DPNDESTROYGROUPREASON_NORMAL 0x0001
|
||||
#define DPNDESTROYGROUPREASON_AUTODESTRUCTED 0x0002
|
||||
#define DPNDESTROYGROUPREASON_SESSIONTERMINATED 0x0003
|
||||
#define DPNDESTROYPLAYERREASON_NORMAL 0x0001
|
||||
#define DPNDESTROYPLAYERREASON_CONNECTIONLOST 0x0002
|
||||
#define DPNDESTROYPLAYERREASON_SESSIONTERMINATED 0x0003
|
||||
#define DPNDESTROYPLAYERREASON_HOSTDESTROYEDPLAYER 0x0004
|
||||
#define DPN_MAX_APPDESC_RESERVEDDATA_SIZE 64
|
||||
|
||||
#define DPNOP_SYNC 0x80000000
|
||||
#define DPNADDPLAYERTOGROUP_SYNC DPNOP_SYNC
|
||||
#define DPNCANCEL_CONNECT 0x0001
|
||||
#define DPNCANCEL_ENUM 0x0002
|
||||
#define DPNCANCEL_SEND 0x0004
|
||||
#define DPNCANCEL_ALL_OPERATIONS 0x8000
|
||||
#define DPNCANCEL_PLAYER_SENDS 0x80000000
|
||||
#define DPNCANCEL_PLAYER_SENDS_PRIORITY_HIGH (DPNCANCEL_PLAYER_SENDS | 0x00010000)
|
||||
#define DPNCANCEL_PLAYER_SENDS_PRIORITY_NORMAL (DPNCANCEL_PLAYER_SENDS | 0x00020000)
|
||||
#define DPNCANCEL_PLAYER_SENDS_PRIORITY_LOW (DPNCANCEL_PLAYER_SENDS | 0x00040000)
|
||||
#define DPNCLOSE_IMMEDIATE 0x00000001
|
||||
#define DPNCONNECT_SYNC DPNOP_SYNC
|
||||
#define DPNCONNECT_OKTOQUERYFORADDRESSING 0x0001
|
||||
#define DPNCREATEGROUP_SYNC DPNOP_SYNC
|
||||
#define DPNDESTROYGROUP_SYNC DPNOP_SYNC
|
||||
#define DPNENUM_PLAYERS 0x0001
|
||||
#define DPNENUM_GROUPS 0x0010
|
||||
#define DPNENUMHOSTS_SYNC DPNOP_SYNC
|
||||
#define DPNENUMHOSTS_OKTOQUERYFORADDRESSING 0x0001
|
||||
#define DPNENUMHOSTS_NOBROADCASTFALLBACK 0x0002
|
||||
#define DPNENUMSERVICEPROVIDERS_ALL 0x0001
|
||||
#define DPNGETLOCALHOSTADDRESSES_COMBINED 0x0001
|
||||
#define DPNGETSENDQUEUEINFO_PRIORITY_NORMAL 0x0001
|
||||
#define DPNGETSENDQUEUEINFO_PRIORITY_HIGH 0x0002
|
||||
#define DPNGETSENDQUEUEINFO_PRIORITY_LOW 0x0004
|
||||
#define DPNGROUP_AUTODESTRUCT 0x0001
|
||||
#define DPNHOST_OKTOQUERYFORADDRESSING 0x0001
|
||||
#define DPNINFO_NAME 0x0001
|
||||
#define DPNINFO_DATA 0x0002
|
||||
#define DPNINITIALIZE_DISABLEPARAMVAL 0x0001
|
||||
#define DPNINITIALIZE_HINT_LANSESSION 0x0002
|
||||
#define DPNINITIALIZE_DISABLELINKTUNING 0x0004
|
||||
#define DPNLOBBY_REGISTER 0x0001
|
||||
#define DPNLOBBY_UNREGISTER 0x0002
|
||||
#define DPNPLAYER_LOCAL 0x0002
|
||||
#define DPNPLAYER_HOST 0x0004
|
||||
#define DPNRECEIVE_GUARANTEED 0x0001
|
||||
#define DPNRECEIVE_COALESCED 0x0002
|
||||
#define DPNREMOVEPLAYERFROMGROUP_SYNC DPNOP_SYNC
|
||||
#define DPNSEND_SYNC DPNOP_SYNC
|
||||
#define DPNSEND_NOCOPY 0x0001
|
||||
#define DPNSEND_NOCOMPLETE 0x0002
|
||||
#define DPNSEND_COMPLETEONPROCESS 0x0004
|
||||
#define DPNSEND_GUARANTEED 0x0008
|
||||
#define DPNSEND_NONSEQUENTIAL 0x0010
|
||||
#define DPNSEND_NOLOOPBACK 0x0020
|
||||
#define DPNSEND_PRIORITY_LOW 0x0040
|
||||
#define DPNSEND_PRIORITY_HIGH 0x0080
|
||||
#define DPNSEND_COALESCE 0x0100
|
||||
#define DPNSENDCOMPLETE_GUARANTEED 0x0001
|
||||
#define DPNSENDCOMPLETE_COALESCED 0x0002
|
||||
#define DPNSESSION_CLIENT_SERVER 0x0001
|
||||
#define DPNSESSION_MIGRATE_HOST 0x0004
|
||||
#define DPNSESSION_NODPNSVR 0x0040
|
||||
#define DPNSESSION_REQUIREPASSWORD 0x0080
|
||||
#define DPNSESSION_NOENUMS 0x0100
|
||||
#define DPNSESSION_FAST_SIGNED 0x0200
|
||||
#define DPNSESSION_FULL_SIGNED 0x0400
|
||||
#define DPNSETCLIENTINFO_SYNC DPNOP_SYNC
|
||||
#define DPNSETGROUPINFO_SYNC DPNOP_SYNC
|
||||
#define DPNSETPEERINFO_SYNC DPNOP_SYNC
|
||||
#define DPNSETSERVERINFO_SYNC DPNOP_SYNC
|
||||
#define DPNSPCAPS_SUPPORTSDPNSRV 0x0001
|
||||
#define DPNSPCAPS_SUPPORTSBROADCAST 0x0002
|
||||
#define DPNSPCAPS_SUPPORTSALLADAPTERS 0x0004
|
||||
#define DPNSPCAPS_SUPPORTSTHREADPOOL 0x0008
|
||||
#define DPNSPCAPS_NETWORKSIMULATOR 0x0010
|
||||
#define DPNSPINFO_NETWORKSIMULATORDEVICE 0x0001
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
@ -228,6 +260,21 @@ typedef struct _DPN_CAPS {
|
||||
DWORD dwTimeoutUntilKeepAlive;
|
||||
} DPN_CAPS, *PDPN_CAPS;
|
||||
|
||||
typedef struct _DPN_CAPS_EX {
|
||||
DWORD dwSize;
|
||||
DWORD dwFlags;
|
||||
DWORD dwConnectTimeout;
|
||||
DWORD dwConnectRetries;
|
||||
DWORD dwTimeoutUntilKeepAlive;
|
||||
DWORD dwMaxRecvMsgSize;
|
||||
DWORD dwNumSendRetries;
|
||||
DWORD dwMaxSendRetryInterval;
|
||||
DWORD dwDropThresholdRate;
|
||||
DWORD dwThrottleRate;
|
||||
DWORD dwNumHardDisconnectSends;
|
||||
DWORD dwMaxHardDisconnectPeriod;
|
||||
} DPN_CAPS_EX, *PDPN_CAPS_EX;
|
||||
|
||||
typedef struct _DPN_CONNECTION_INFO {
|
||||
DWORD dwSize;
|
||||
DWORD dwRoundTripLatencyMS;
|
||||
@ -323,6 +370,8 @@ typedef struct _DPNMSG_CONNECT_COMPLETE {
|
||||
HRESULT hResultCode;
|
||||
PVOID pvApplicationReplyData;
|
||||
DWORD dwApplicationReplyDataSize;
|
||||
/** DirectX 9 */
|
||||
DPNID dpnidLocal;
|
||||
} DPNMSG_CONNECT_COMPLETE, *PDPNMSG_CONNECT_COMPLETE;
|
||||
|
||||
typedef struct _DPNMSG_CREATE_GROUP {
|
||||
@ -330,6 +379,8 @@ typedef struct _DPNMSG_CREATE_GROUP {
|
||||
DPNID dpnidGroup;
|
||||
DPNID dpnidOwner;
|
||||
PVOID pvGroupContext;
|
||||
/** DirectX 9 */
|
||||
PVOID pvOwnerContext;
|
||||
} DPNMSG_CREATE_GROUP, *PDPNMSG_CREATE_GROUP;
|
||||
|
||||
typedef struct _DPNMSG_CREATE_PLAYER {
|
||||
@ -417,6 +468,8 @@ typedef struct _DPNMSG_RECEIVE {
|
||||
PBYTE pReceiveData;
|
||||
DWORD dwReceiveDataSize;
|
||||
DPNHANDLE hBufferHandle;
|
||||
/** DirectX 9 */
|
||||
DWORD dwReceiveFlags;
|
||||
} DPNMSG_RECEIVE, *PDPNMSG_RECEIVE;
|
||||
|
||||
typedef struct _DPNMSG_REMOVE_PLAYER_FROM_GROUP {
|
||||
@ -440,6 +493,12 @@ typedef struct _DPNMSG_SEND_COMPLETE {
|
||||
PVOID pvUserContext;
|
||||
HRESULT hResultCode;
|
||||
DWORD dwSendTime;
|
||||
/** DirectX 9 */
|
||||
DWORD dwFirstFrameRTT;
|
||||
DWORD dwFirstFrameRetryCount;
|
||||
DWORD dwSendCompleteFlags;
|
||||
DPN_BUFFER_DESC* pBuffers;
|
||||
DWORD dwNumBuffers;
|
||||
} DPNMSG_SEND_COMPLETE, *PDPNMSG_SEND_COMPLETE;
|
||||
|
||||
typedef struct _DPNMSG_SERVER_INFO {
|
||||
@ -455,25 +514,54 @@ typedef struct _DPNMSG_TERMINATE_SESSION {
|
||||
DWORD dwTerminateDataSize;
|
||||
} DPNMSG_TERMINATE_SESSION, *PDPNMSG_TERMINATE_SESSION;
|
||||
|
||||
typedef struct _DPNMSG_CREATE_THREAD {
|
||||
DWORD dwSize;
|
||||
DWORD dwFlags;
|
||||
DWORD dwProcessorNum;
|
||||
PVOID pvUserContext;
|
||||
} DPNMSG_CREATE_THREAD, *PDPNMSG_CREATE_THREAD;
|
||||
|
||||
typedef struct _DPNMSG_DESTROY_THREAD {
|
||||
DWORD dwSize;
|
||||
DWORD dwProcessorNum;
|
||||
PVOID pvUserContext;
|
||||
} DPNMSG_DESTROY_THREAD, *PDPNMSG_DESTROY_THREAD;
|
||||
|
||||
typedef struct _DPNMSG_NAT_RESOLVER_QUERY {
|
||||
DWORD dwSize;
|
||||
IDirectPlay8Address* pAddressSender;
|
||||
IDirectPlay8Address* pAddressDevice;
|
||||
WCHAR* pwszUserString;
|
||||
} DPNMSG_NAT_RESOLVER_QUERY, *PDPNMSG_NAT_RESOLVER_QUERY;
|
||||
|
||||
/*****************************************************************************
|
||||
* Predeclare the interfaces
|
||||
*/
|
||||
DEFINE_GUID(CLSID_DirectPlay8Peer, 0x286f484d,0x375e,0x4458,0xa2,0x72,0xb1,0x38,0xe2,0xf8,0xa,0x6a);
|
||||
DEFINE_GUID(CLSID_DirectPlay8Client, 0x743f1dc6,0x5aba,0x429f,0x8b,0xdf,0xc5,0x4d,0x3,0x25,0x3d,0xc2);
|
||||
DEFINE_GUID(CLSID_DirectPlay8Server, 0xda825e1b,0x6830,0x43d7,0x83,0x5d,0xb,0x5a,0xd8,0x29,0x56,0xa2);
|
||||
DEFINE_GUID(CLSID_DirectPlay8Peer, 0x286f484d,0x375e,0x4458,0xa2,0x72,0xb1,0x38,0xe2,0xf8,0x0a,0x6a);
|
||||
DEFINE_GUID(CLSID_DirectPlay8Client, 0x743f1dc6,0x5aba,0x429f,0x8b,0xdf,0xc5,0x4d,0x03,0x25,0x3d,0xc2);
|
||||
DEFINE_GUID(CLSID_DirectPlay8Server, 0xda825e1b,0x6830,0x43d7,0x83,0x5d,0x0b,0x5a,0xd8,0x29,0x56,0xa2);
|
||||
/** DirectX 9 */
|
||||
DEFINE_GUID(CLSID_DirectPlay8ThreadPool, 0xfc47060e,0x6153,0x4b34,0xb9,0x75,0x8e,0x41,0x21,0xeb,0x7f,0x3c);
|
||||
DEFINE_GUID(CLSID_DirectPlay8NATResolver, 0xe4c1d9a2,0xcbf7,0x48bd,0x9a,0x69,0x34,0xa5,0x5e,0x0d,0x89,0x41);
|
||||
|
||||
DEFINE_GUID(IID_IDirectPlay8Peer, 0x5102dacf,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(IID_IDirectPlay8Peer, 0x5102dacf,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
typedef struct IDirectPlay8Peer *PDIRECTPLAY8PEER;
|
||||
DEFINE_GUID(IID_IDirectPlay8Client, 0x5102dacd,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(IID_IDirectPlay8Client, 0x5102dacd,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
typedef struct IDirectPlay8Client *PDIRECTPLAY8CLIENT;
|
||||
DEFINE_GUID(IID_IDirectPlay8Server, 0x5102dace,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(IID_IDirectPlay8Server, 0x5102dace,0x241b,0x11d3,0xae,0xa7,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
typedef struct IDirectPlay8Server *PDIRECTPLAY8SERVER;
|
||||
/** DirectX 9 */
|
||||
DEFINE_GUID(IID_IDirectPlay8ThreadPool, 0x0d22ee73,0x4a46,0x4a0d,0x89,0xb2,0x04,0x5b,0x4d,0x66,0x64,0x25);
|
||||
typedef struct IDirectPlay8ThreadPool *PDIRECTPLAY8THREADPOOL;
|
||||
DEFINE_GUID(IID_IDirectPlay8NATResolver, 0xa9e213f2,0x9a60,0x486f,0xbf,0x3b,0x53,0x40,0x8b,0x6d,0x1c,0xbb);
|
||||
typedef struct IDirectPlay8NATResolver *PDIRECTPLAY8NATRESOLVER;
|
||||
|
||||
DEFINE_GUID(CLSID_DP8SP_IPX, 0x53934290,0x628d,0x11d2,0xae,0xf,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(CLSID_DP8SP_TCPIP, 0xebfe7ba0,0x628d,0x11d2,0xae,0xf,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(CLSID_DP8SP_SERIAL, 0x743b5d60,0x628d,0x11d2,0xae,0xf,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(CLSID_DP8SP_MODEM, 0x6d4a3650,0x628d,0x11d2,0xae,0xf,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(CLSID_DP8SP_IPX, 0x53934290,0x628d,0x11d2,0xae,0x0f,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(CLSID_DP8SP_TCPIP, 0xebfe7ba0,0x628d,0x11d2,0xae,0x0f,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(CLSID_DP8SP_SERIAL, 0x743b5d60,0x628d,0x11d2,0xae,0x0f,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
DEFINE_GUID(CLSID_DP8SP_MODEM, 0x6d4a3650,0x628d,0x11d2,0xae,0x0f,0x0,0x60,0x97,0xb0,0x14,0x11);
|
||||
/** DirectX 9 */
|
||||
DEFINE_GUID(CLSID_DP8SP_BLUETOOTH, 0x995513af,0x3027,0x4b9a,0x95,0x6e,0xc7,0x72,0xb3,0xf7,0x80,0x06);
|
||||
|
||||
typedef struct IDirectPlay8LobbiedApplication *PIDirectPlay8LobbiedApplication, DNLOBBIEDAPPLICATION;
|
||||
|
||||
@ -816,6 +904,96 @@ DECLARE_INTERFACE_(IDirectPlay8Peer,IUnknown)
|
||||
#define IDirectPlay8Peer_TerminateSession(p,a,b,c) (p)->TerminateSession(a,b,c)
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
* IDirectPlay8ThreadPool interface
|
||||
*/
|
||||
#define INTERFACE IDirectPlay8ThreadPool
|
||||
DECLARE_INTERFACE_(IDirectPlay8ThreadPool,IUnknown)
|
||||
{
|
||||
/*** IUnknown methods ***/
|
||||
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
||||
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
||||
/*** IDirectPlay8ThreadPool methods ***/
|
||||
STDMETHOD(Initialize)(THIS_ PVOID CONST pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(Close)(THIS_ CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(GetThreadCount)(THIS_ CONST DWORD dwProcessorNum, DWORD* CONST pdwNumThreads, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(SetThreadCount)(THIS_ CONST DWORD dwProcessorNum, CONST DWORD dwNumThreads, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(DoWork)(THIS_ CONST DWORD dwAllowedTimeSlice, CONST DWORD dwFlags) PURE;
|
||||
};
|
||||
#undef INTERFACE
|
||||
|
||||
#if !defined(__cplusplus) || defined(CINTERFACE)
|
||||
/*** IUnknown methods ***/
|
||||
#define IDirectPlay8ThreadPool_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
||||
#define IDirectPlay8ThreadPool_AddRef(p) (p)->lpVtbl->AddRef(p)
|
||||
#define IDirectPlay8ThreadPool_Release(p) (p)->lpVtbl->Release(p)
|
||||
/*** IDirectPlay8ThreadPool methods ***/
|
||||
#define IDirectPlay8ThreadPool_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
||||
#define IDirectPlay8ThreadPool_Close(p,a) (p)->lpVtbl->Close(p,a)
|
||||
#define IDirectPlay8ThreadPool_GetThreadCount(p,a,b,c) (p)->lpVtbl->GetThreadCount(p,a,b,c)
|
||||
#define IDirectPlay8ThreadPool_SetThreadCount(p,a,b,c) (p)->lpVtbl->SetThreadCount(p,a,b,c)
|
||||
#define IDirectPlay8ThreadPool_DoWork(p,a,b) (p)->lpVtbl->DoWork(p,a,b)
|
||||
#else
|
||||
/*** IUnknown methods ***/
|
||||
#define IDirectPlay8ThreadPool_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
||||
#define IDirectPlay8ThreadPool_AddRef(p) (p)->AddRef()
|
||||
#define IDirectPlay8ThreadPool_Release(p) (p)->Release()
|
||||
/*** IDirectPlay8ThreadPool methods ***/
|
||||
#define IDirectPlay8ThreadPool_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
||||
#define IDirectPlay8ThreadPool_Close(p,a) (p)->Close(a)
|
||||
#define IDirectPlay8ThreadPool_GetThreadCount(p,a,b,c) (p)->GetThreadCount(a,b,c)
|
||||
#define IDirectPlay8ThreadPool_SetThreadCount(p,a,b,c) (p)->SetThreadCount(a,b,c)
|
||||
#define IDirectPlay8ThreadPool_DoWork(p,a,b) (p)->DoWork(a,b)
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
* IDirectPlay8NATResolver interface
|
||||
*/
|
||||
#define INTERFACE IDirectPlay8NATResolver
|
||||
DECLARE_INTERFACE_(IDirectPlay8NATResolver,IUnknown)
|
||||
{
|
||||
/*** IUnknown methods ***/
|
||||
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
||||
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
||||
/*** IDirectPlay8NATResolver methods ***/
|
||||
STDMETHOD(Initialize)(THIS_ PVOID CONST pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(Start)(THIS_ IDirectPlay8Address** CONST ppDevices, CONST DWORD dwNumDevices, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(Close)(THIS_ CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(EnumDevices)(THIS_ DPN_SERVICE_PROVIDER_INFO* CONST pSPInfoBuffer, PDWORD CONST pdwBufferSize, PDWORD CONST pdwNumDevices, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(GetAddresses)(THIS_ IDirectPlay8Address** CONST ppAddresses, DWORD* CONST pdwNumAddresses, CONST DWORD dwFlags) PURE;
|
||||
};
|
||||
#undef INTERFACE
|
||||
|
||||
#if !defined(__cplusplus) || defined(CINTERFACE)
|
||||
/*** IUnknown methods ***/
|
||||
#define IDirectPlay8NATResolver_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
||||
#define IDirectPlay8NATResolver_AddRef(p) (p)->lpVtbl->AddRef(p)
|
||||
#define IDirectPlay8NATResolver_Release(p) (p)->lpVtbl->Release(p)
|
||||
/*** IDirectPlay8NATResolver methods ***/
|
||||
#define IDirectPlay8NATResolver_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
||||
#define IDirectPlay8NATResolver_Start(p,a,b,c) (p)->lpVtbl->Start(p,a,b,c)
|
||||
#define IDirectPlay8NATResolver_Close(p,a) (p)->lpVtbl->Close(p,a)
|
||||
#define IDirectPlay8NATResolver_EnumDevices(p,a,b,c,d) (p)->lpVtbl->EnumDevices(p,a,b,c,d)
|
||||
#define IDirectPlay8NATResolver_GetAddresses(p,a,b,c) (p)->lpVtbl->GetAddresses(p,a,b,c)
|
||||
#else
|
||||
/*** IUnknown methods ***/
|
||||
#define IDirectPlay8NATResolver_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
||||
#define IDirectPlay8NATResolver_AddRef(p) (p)->AddRef()
|
||||
#define IDirectPlay8NATResolver_Release(p) (p)->Release()
|
||||
/*** IDirectPlay8NATResolver methods ***/
|
||||
#define IDirectPlay8NATResolver_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
||||
#define IDirectPlay8NATResolver_Start(p,a,b,c) (p)->Start(a,b,c)
|
||||
#define IDirectPlay8NATResolver_Close(p,a) (p)->Close(a)
|
||||
#define IDirectPlay8NATResolver_EnumDevices(p,a,b,c,d) (p)->EnumDevices(a,b,c,d)
|
||||
#define IDirectPlay8NATResolver_GetAddresses(p,a,b,c) (p)->GetAddresses(a,b,c)
|
||||
#endif
|
||||
|
||||
/* Export functions */
|
||||
|
||||
HRESULT WINAPI DirectPlay8Create(CONST CLSID* pcIID, LPVOID* ppvInterface, IUnknown* pUnknown);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
259
include/dplobby8.h
Normal file
259
include/dplobby8.h
Normal file
@ -0,0 +1,259 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2005 Raphael Junqueira
|
||||
*
|
||||
* 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_DPLOBBY8_H
|
||||
#define __WINE_DPLOBBY8_H
|
||||
|
||||
#include <ole2.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* defined(__cplusplus) */
|
||||
|
||||
/*****************************************************************************
|
||||
* DirectPlay8Lobby defines
|
||||
*/
|
||||
#define DPL_MSGID_LOBBY 0x8000
|
||||
#define DPL_MSGID_RECEIVE (0x0001 | DPL_MSGID_LOBBY)
|
||||
#define DPL_MSGID_CONNECT (0x0002 | DPL_MSGID_LOBBY)
|
||||
#define DPL_MSGID_DISCONNECT (0x0003 | DPL_MSGID_LOBBY)
|
||||
#define DPL_MSGID_SESSION_STATUS (0x0004 | DPL_MSGID_LOBBY)
|
||||
#define DPL_MSGID_CONNECTION_SETTINGS (0x0005 | DPL_MSGID_LOBBY)
|
||||
#define DPLHANDLE_ALLCONNECTIONS 0xFFFFFFFF
|
||||
#define DPLSESSION_CONNECTED 0x0001
|
||||
#define DPLSESSION_COULDNOTCONNECT 0x0002
|
||||
#define DPLSESSION_DISCONNECTED 0x0003
|
||||
#define DPLSESSION_TERMINATED 0x0004
|
||||
#define DPLSESSION_HOSTMIGRATED 0x0005
|
||||
#define DPLSESSION_HOSTMIGRATEDHERE 0x0006
|
||||
#define DPLAVAILABLE_ALLOWMULTIPLECONNECT 0x0001
|
||||
#define DPLCONNECT_LAUNCHNEW 0x0001
|
||||
#define DPLCONNECT_LAUNCHNOTFOUND 0x0002
|
||||
#define DPLCONNECTSETTINGS_HOST 0x0001
|
||||
#define DPLINITIALIZE_DISABLEPARAMVAL 0x0001
|
||||
|
||||
/*****************************************************************************
|
||||
* DirectPlay8Lobby structures Typedefs
|
||||
*/
|
||||
typedef struct _DPL_APPLICATION_INFO {
|
||||
GUID guidApplication;
|
||||
PWSTR pwszApplicationName;
|
||||
DWORD dwNumRunning;
|
||||
DWORD dwNumWaiting;
|
||||
DWORD dwFlags;
|
||||
} DPL_APPLICATION_INFO, *PDPL_APPLICATION_INFO;
|
||||
|
||||
typedef struct _DPL_CONNECTION_SETTINGS {
|
||||
DWORD dwSize;
|
||||
DWORD dwFlags;
|
||||
DPN_APPLICATION_DESC dpnAppDesc;
|
||||
IDirectPlay8Address* pdp8HostAddress;
|
||||
IDirectPlay8Address** ppdp8DeviceAddresses;
|
||||
DWORD cNumDeviceAddresses;
|
||||
PWSTR pwszPlayerName;
|
||||
} DPL_CONNECTION_SETTINGS, *PDPL_CONNECTION_SETTINGS;
|
||||
|
||||
typedef struct _DPL_CONNECT_INFO {
|
||||
DWORD dwSize;
|
||||
DWORD dwFlags;
|
||||
GUID guidApplication;
|
||||
PDPL_CONNECTION_SETTINGS pdplConnectionSettings;
|
||||
PVOID pvLobbyConnectData;
|
||||
DWORD dwLobbyConnectDataSize;
|
||||
} DPL_CONNECT_INFO, *PDPL_CONNECT_INFO;
|
||||
|
||||
typedef struct _DPL_PROGRAM_DESC {
|
||||
DWORD dwSize;
|
||||
DWORD dwFlags;
|
||||
GUID guidApplication;
|
||||
PWSTR pwszApplicationName;
|
||||
PWSTR pwszCommandLine;
|
||||
PWSTR pwszCurrentDirectory;
|
||||
PWSTR pwszDescription;
|
||||
PWSTR pwszExecutableFilename;
|
||||
PWSTR pwszExecutablePath;
|
||||
PWSTR pwszLauncherFilename;
|
||||
PWSTR pwszLauncherPath;
|
||||
} DPL_PROGRAM_DESC, *PDPL_PROGRAM_DESC;
|
||||
|
||||
typedef struct _DPL_MESSAGE_CONNECT {
|
||||
DWORD dwSize;
|
||||
DPNHANDLE hConnectId;
|
||||
PDPL_CONNECTION_SETTINGS pdplConnectionSettings;
|
||||
PVOID pvLobbyConnectData;
|
||||
DWORD dwLobbyConnectDataSize;
|
||||
PVOID pvConnectionContext;
|
||||
} DPL_MESSAGE_CONNECT, *PDPL_MESSAGE_CONNECT;
|
||||
|
||||
typedef struct _DPL_MESSAGE_CONNECTION_SETTINGS {
|
||||
DWORD dwSize;
|
||||
DPNHANDLE hSender;
|
||||
PDPL_CONNECTION_SETTINGS pdplConnectionSettings;
|
||||
PVOID pvConnectionContext;
|
||||
} DPL_MESSAGE_CONNECTION_SETTINGS, *PDPL_MESSAGE_CONNECTION_SETTINGS;
|
||||
|
||||
typedef struct _DPL_MESSAGE_DISCONNECT {
|
||||
DWORD dwSize;
|
||||
DPNHANDLE hDisconnectId;
|
||||
HRESULT hrReason;
|
||||
PVOID pvConnectionContext;
|
||||
} DPL_MESSAGE_DISCONNECT, *PDPL_MESSAGE_DISCONNECT;
|
||||
|
||||
typedef struct _DPL_MESSAGE_RECEIVE {
|
||||
DWORD dwSize;
|
||||
DPNHANDLE hSender;
|
||||
BYTE* pBuffer;
|
||||
DWORD dwBufferSize;
|
||||
PVOID pvConnectionContext;
|
||||
} DPL_MESSAGE_RECEIVE, *PDPL_MESSAGE_RECEIVE;
|
||||
|
||||
typedef struct _DPL_MESSAGE_SESSION_STATUS {
|
||||
DWORD dwSize;
|
||||
DPNHANDLE hSender;
|
||||
DWORD dwStatus;
|
||||
PVOID pvConnectionContext;
|
||||
} DPL_MESSAGE_SESSION_STATUS, *PDPL_MESSAGE_SESSION_STATUS;
|
||||
|
||||
/*****************************************************************************
|
||||
* Predeclare the interfaces
|
||||
*/
|
||||
DEFINE_GUID(CLSID_DirectPlay8LobbiedApplication, 0x667955ad,0x6b3b,0x43ca,0xb9,0x49,0xbc,0x69,0xb5,0xba,0xff,0x7f);
|
||||
DEFINE_GUID(CLSID_DirectPlay8LobbyClient, 0x3b2b6775,0x70b6,0x45af,0x8d,0xea,0xa2,0x09,0xc6,0x95,0x59,0xf3);
|
||||
|
||||
DEFINE_GUID(IID_IDirectPlay8LobbiedApplication, 0x819074a3,0x16c,0x11d3,0xae,0x14,0x00,0x60,0x97,0xb0,0x14,0x11);
|
||||
typedef struct IDirectPlay8LobbiedApplication *PDIRECTPLAY8LOBBIEDAPPLICATION;
|
||||
DEFINE_GUID(IID_IDirectPlay8LobbyClient, 0x819074a2,0x16c,0x11d3,0xae,0x14,0x00,0x60,0x97,0xb0,0x14,0x11);
|
||||
typedef struct IDirectPlay8LobbyClient *PDIRECTPLAY8LOBBYCLIENT;
|
||||
|
||||
/*****************************************************************************
|
||||
* IDirectPlay8LobbiedApplication interface
|
||||
*/
|
||||
#define INTERFACE IDirectPlay8LobbiedApplication
|
||||
DECLARE_INTERFACE_(IDirectPlay8LobbiedApplication,IUnknown)
|
||||
{
|
||||
/*** IUnknown methods ***/
|
||||
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
||||
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
||||
/*** IDirectPlay8LobbiedApplication methods ***/
|
||||
STDMETHOD(Initialize)(THIS_ CONST PVOID pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, DPNHANDLE* CONST pdpnhConnection, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(RegisterProgram)(THIS_ PDPL_PROGRAM_DESC pdplProgramDesc, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(UnRegisterProgram)(THIS_ GUID* pguidApplication, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(Send)(THIS_ CONST DPNHANDLE hConnection, BYTE* CONST pBuffer, CONST DWORD pBufferSize, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(SetAppAvailable)(THIS_ CONST BOOL fAvailable, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(UpdateStatus)(THIS_ CONST DPNHANDLE hConnection, CONST DWORD dwStatus, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(Close)(THIS_ CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(GetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, DWORD* pdwInfoSize, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(SetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, CONST DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, CONST DWORD dwFlags) PURE;
|
||||
};
|
||||
#undef INTERFACE
|
||||
|
||||
#if !defined(__cplusplus) || defined(CINTERFACE)
|
||||
/*** IUnknown methods ***/
|
||||
#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
||||
#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->lpVtbl->AddRef(p)
|
||||
#define IDirectPlay8LobbiedApplication_Release(p) (p)->lpVtbl->Release(p)
|
||||
/*** IDirectPlay8LobbiedApplication methods ***/
|
||||
#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->lpVtbl->Initialize(p,a,b,c,d)
|
||||
#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->lpVtbl->RegisterProgram(p,a,b)
|
||||
#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->lpVtbl->UnRegisterProgram(p,a,b)
|
||||
#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
|
||||
#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->lpVtbl->SetAppAvailable(p,a,b)
|
||||
#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->lpVtbl->UpdateStatus(p,a,b,c)
|
||||
#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->lpVtbl->Close(p,a)
|
||||
#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
|
||||
#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
|
||||
#else
|
||||
/*** IUnknown methods ***/
|
||||
#define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
||||
#define IDirectPlay8LobbiedApplication_AddRef(p) (p)->AddRef()
|
||||
#define IDirectPlay8LobbiedApplication_Release(p) (p)->Release()
|
||||
/*** IDirectPlay8LobbiedApplication methods ***/
|
||||
#define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->Initialize(a,b,c,d)
|
||||
#define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->RegisterProgram(a,b)
|
||||
#define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->UnRegisterProgram(a,b)
|
||||
#define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
|
||||
#define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->SetAppAvailable(a,b)
|
||||
#define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->UpdateStatus(a,b,c)
|
||||
#define IDirectPlay8LobbiedApplication_Close(p,a) (p)->Close(a)
|
||||
#define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
|
||||
#define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
* IDirectPlay8LobbyClient interface
|
||||
*/
|
||||
#define INTERFACE IDirectPlay8LobbyClient
|
||||
DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown)
|
||||
{
|
||||
/*** IUnknown methods ***/
|
||||
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
||||
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
||||
/*** IDirectPlay8LobbyClient methods ***/
|
||||
STDMETHOD(Initialize)(THIS_ CONST PVOID pvUserContext, CONST PFNDPNMESSAGEHANDLER pfn, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(EnumLocalPrograms)(THIS_ GUID* CONST pGuidApplication, BYTE* CONST pEnumData, DWORD* CONST pdwEnumData, DWORD* CONST pdwItems, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(ConnectApplication)(THIS_ DPL_CONNECT_INFO* CONST pdplConnectionInfo, CONST PVOID pvConnectionContext, DPNHANDLE* CONST hApplication, CONST DWORD dwTimeOut, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(Send)(THIS_ CONST DPNHANDLE hConnection, BYTE* CONST pBuffer, CONST DWORD pBufferSize, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(ReleaseApplication)(THIS_ CONST DPNHANDLE hConnection, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(Close)(THIS_ CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(GetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, DWORD* pdwInfoSize, CONST DWORD dwFlags) PURE;
|
||||
STDMETHOD(SetConnectionSettings)(THIS_ CONST DPNHANDLE hConnection, CONST DPL_CONNECTION_SETTINGS* CONST pdplSessionInfo, CONST DWORD dwFlags) PURE;
|
||||
};
|
||||
#undef INTERFACE
|
||||
|
||||
#if !defined(__cplusplus) || defined(CINTERFACE)
|
||||
/*** IUnknown methods ***/
|
||||
#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
||||
#define IDirectPlay8LobbyClient_AddRef(p) (p)->lpVtbl->AddRef(p)
|
||||
#define IDirectPlay8LobbyClient_Release(p) (p)->lpVtbl->Release(p)
|
||||
/*** IDirectPlay8LobbyClient methods ***/
|
||||
#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
|
||||
#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->lpVtbl->EnumLocalPrograms(p,a,b,c,d,e)
|
||||
#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->lpVtbl->ConnectApplication(p,a,b,c,d,e)
|
||||
#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
|
||||
#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->lpVtbl->ReleaseApplication(p,a,b)
|
||||
#define IDirectPlay8LobbyClient_Close(p,a) (p)->lpVtbl->Close(p,a)
|
||||
#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
|
||||
#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
|
||||
#else
|
||||
/*** IUnknown methods ***/
|
||||
#define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
||||
#define IDirectPlay8LobbyClient_AddRef(p) (p)->AddRef()
|
||||
#define IDirectPlay8LobbyClient_Release(p) (p)->Release()
|
||||
/*** IDirectPlay8LobbyClient methods ***/
|
||||
#define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
|
||||
#define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->EnumLocalPrograms(a,b,c,d,e)
|
||||
#define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->ConnectApplication(a,b,c,d,e)
|
||||
#define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
|
||||
#define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->ReleaseApplication(a,b)
|
||||
#define IDirectPlay8LobbyClient_Close(p,a) (p)->Close(a)
|
||||
#define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
|
||||
#define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
|
||||
#endif
|
||||
|
||||
|
||||
/* Export functions */
|
||||
|
||||
HRESULT WINAPI DirectPlay8LobbyCreate(CONST GUID* pcIID, LPVOID* ppvInterface, IUnknown* pUnknown);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user