Moved stuff to the right place.
[wine] / include / dplobby.h
1 #ifndef __WINE_DPLOBBY_H
2 #define __WINE_DPLOBBY_H
3
4 #include "dplay.h"
5
6
7 #pragma pack(1)
8
9 /*****************************************************************************
10  * Predeclare the interfaces
11  */
12 DEFINE_GUID(CLSID_DirectPlayLobby, 0x2fe8f810, 0xb2a5, 0x11d0, 0xa7, 0x87, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
13
14 DEFINE_GUID(IID_IDirectPlayLobby, 0xaf465c71, 0x9588, 0x11cf, 0xa0, 0x20, 0x0, 0xaa, 0x0, 0x61, 0x57, 0xac);
15 typedef struct IDirectPlayLobby IDirectPlayLobby,*LPDIRECTPLAYLOBBY;
16
17 DEFINE_GUID(IID_IDirectPlayLobbyA, 0x26c66a70, 0xb367, 0x11cf, 0xa0, 0x24, 0x0, 0xaa, 0x0, 0x61, 0x57, 0xac);
18 typedef struct IDirectPlayLobby IDirectPlayLobbyA,*LPDIRECTPLAYLOBBYA;
19
20 DEFINE_GUID(IID_IDirectPlayLobby2, 0x194c220, 0xa303, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
21 typedef struct IDirectPlayLobby2 IDirectPlayLobby2, *LPDIRECTPLAYLOBBY2;
22
23 DEFINE_GUID(IID_IDirectPlayLobby2A, 0x1bb4af80, 0xa303, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
24 typedef struct IDirectPlayLobby2 IDirectPlayLobby2A, *LPDIRECTPLAYLOBBY2A;
25
26
27 /*****************************************************************************
28  * Miscellaneous
29  */
30
31 typedef struct tagDPLAPPINFO
32 {
33     DWORD       dwSize;            
34     GUID        guidApplication;   
35
36     union appName
37     {
38         LPSTR   lpszAppNameA;      
39         LPWSTR  lpszAppName;
40     };
41
42 } DPLAPPINFO, *LPDPLAPPINFO;
43 typedef const DPLAPPINFO *LPCDPLAPPINFO;
44
45 typedef struct DPCOMPOUNDADDRESSELEMENT
46 {
47     GUID    guidDataType;
48     DWORD   dwDataSize;
49     LPVOID  lpData;
50 } DPCOMPOUNDADDRESSELEMENT, *LPDPCOMPOUNDADDRESSELEMENT;
51 typedef const DPCOMPOUNDADDRESSELEMENT *LPCDPCOMPOUNDADDRESSELEMENT;
52
53
54 extern HRESULT WINAPI DirectPlayLobbyCreateW(LPGUID, LPDIRECTPLAYLOBBY *, IUnknown *, LPVOID, DWORD );
55 extern HRESULT WINAPI DirectPlayLobbyCreateA(LPGUID, LPDIRECTPLAYLOBBYA *, IUnknown *, LPVOID, DWORD );
56
57
58
59 typedef BOOL (CALLBACK* LPDPENUMADDRESSCALLBACK)(
60     REFGUID         guidDataType,
61     DWORD           dwDataSize,
62     LPCVOID         lpData,
63     LPVOID          lpContext );
64
65 typedef BOOL (CALLBACK* LPDPLENUMADDRESSTYPESCALLBACK)(
66     REFGUID         guidDataType,
67     LPVOID          lpContext,
68     DWORD           dwFlags );
69
70 typedef BOOL (CALLBACK* LPDPLENUMLOCALAPPLICATIONSCALLBACK)(
71     LPCDPLAPPINFO   lpAppInfo,
72     LPVOID          lpContext,
73     DWORD           dwFlags );
74
75
76 /*****************************************************************************
77  * IDirectPlayLobby interface
78  */
79 #define ICOM_INTERFACE IDirectPlayLobby
80 #define IDirectPlayLobby_METHODS \
81     ICOM_METHOD3(HRESULT,Connect,               DWORD,, LPDIRECTPLAY2*,, IUnknown*,) \
82     ICOM_METHOD6(HRESULT,CreateAddress,         REFGUID,, REFGUID,, LPCVOID,, DWORD,, LPVOID,, LPDWORD,) \
83     ICOM_METHOD4(HRESULT,EnumAddress,           LPDPENUMADDRESSCALLBACK,, LPCVOID,, DWORD,, LPVOID,) \
84     ICOM_METHOD4(HRESULT,EnumAddressTypes,      LPDPLENUMADDRESSTYPESCALLBACK,, REFGUID,, LPVOID,, DWORD,) \
85     ICOM_METHOD3(HRESULT,EnumLocalApplications, LPDPLENUMLOCALAPPLICATIONSCALLBACK,, LPVOID,, DWORD,) \
86     ICOM_METHOD3(HRESULT,GetConnectionSettings, DWORD,, LPVOID,, LPDWORD,) \
87     ICOM_METHOD5(HRESULT,ReceiveLobbyMessage,   DWORD,, DWORD,, LPDWORD,, LPVOID,, LPDWORD,) \
88     ICOM_METHOD4(HRESULT,RunApplication,        DWORD,, LPDWORD,, LPDPLCONNECTION,, HANDLE,) \
89     ICOM_METHOD4(HRESULT,SendLobbyMessage,      DWORD,, DWORD,, LPVOID,, DWORD,) \
90     ICOM_METHOD3(HRESULT,SetConnectionSettings, DWORD,, DWORD,, LPDPLCONNECTION,) \
91     ICOM_METHOD3(HRESULT,SetLobbyMessageEvent,  DWORD,, DWORD,, HANDLE,)
92 #define IDirectPlayLobby_IMETHODS \
93     IUnknown_IMETHODS \
94     IDirectPlayLobby_METHODS
95 ICOM_DEFINE(IDirectPlayLobby,IUnknown)
96 #undef ICOM_INTERFACE
97
98 #ifdef ICOM_CINTERFACE
99 /*** IUnknown methods ***/
100 #define IDirectPlayLobby_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
101 #define IDirectPlayLobby_AddRef(p)             ICOM_CALL (AddRef,p)
102 #define IDirectPlayLobby_Release(p)            ICOM_CALL (Release,p)
103 /*** IDirectPlayLobby methods ***/
104 #define IDirectPlayLobby_Connect(p,a,b,c)                 ICOM_CALL3(Connect,p,a,b,c)
105 #define IDirectPlayLobby_CreateAddress(p,a,b,c,d,e,f)     ICOM_CALL6(CreateAddress,p,a,b,c,d,e,f)
106 #define IDirectPlayLobby_EnumAddress(p,a,b,c,d)           ICOM_CALL4(EnumAddress,p,a,b,c,d)
107 #define IDirectPlayLobby_EnumAddressTypes(p,a,b,c,d)      ICOM_CALL4(EnumAddressTypes,p,a,b,c,d)
108 #define IDirectPlayLobby_EnumLocalApplications(p,a,b,c)   ICOM_CALL3(EnumLocalApplications,p,a,b,c)
109 #define IDirectPlayLobby_GetConnectionSettings(p,a,b,c)   ICOM_CALL3(GetConnectionSettings,p,a,b,c)
110 #define IDirectPlayLobby_ReceiveLobbyMessage(p,a,b,c,d,e) ICOM_CALL5(ReceiveLobbyMessage,p,a,b,c,d,e)
111 #define IDirectPlayLobby_RunApplication(p,a,b,c,d)        ICOM_CALL4(RunApplication,p,a,b,c,d)
112 #define IDirectPlayLobby_SendLobbyMessage(p,a,b,c,d)      ICOM_CALL4(SendLobbyMessage,p,a,b,c,d)
113 #define IDirectPlayLobby_SetConnectionSettings(p,a,b,c)   ICOM_CALL3(SetConnectionSettings,p,a,b,c)
114 #define IDirectPlayLobby_SetLobbyMessageEvent(p,a,b,c)    ICOM_CALL3(SetLobbyMessageEvent,p,a,b,c)
115 #endif
116
117
118 /*****************************************************************************
119  * IDirectPlayLobby2 interface
120  */
121 #define ICOM_INTERFACE IDirectPlayLobby2
122 #define IDirectPlayLobby2_METHODS \
123     ICOM_METHOD4(HRESULT,CreateCompoundAddress, LPCDPCOMPOUNDADDRESSELEMENT,, DWORD,, LPVOID,, LPDWORD,)
124 #define IDirectPlayLobby2_IMETHODS \
125     IDirectPlayLobby_IMETHODS \
126     IDirectPlayLobby2_METHODS
127 ICOM_DEFINE(IDirectPlayLobby2,IDirectPlayLobby)
128 #undef ICOM_INTERFACE
129
130 #ifdef ICOM_CINTERFACE
131 /*** IUnknown methods ***/
132 #define IDirectPlayLobby2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
133 #define IDirectPlayLobby2_AddRef(p)             ICOM_CALL (AddRef,p)
134 #define IDirectPlayLobby2_Release(p)            ICOM_CALL (Release,p)
135 /*** IDirectPlayLobby methods ***/
136 #define IDirectPlayLobby2_Connect(p,a,b,c)                 ICOM_CALL3(Connect,p,a,b,c)
137 #define IDirectPlayLobby2_CreateAddress(p,a,b,c,d,e,f)     ICOM_CALL6(CreateAddress,p,a,b,c,d,e,f)
138 #define IDirectPlayLobby2_EnumAddress(p,a,b,c,d)           ICOM_CALL4(EnumAddress,p,a,b,c,d)
139 #define IDirectPlayLobby2_EnumAddressTypes(p,a,b,c,d)      ICOM_CALL4(EnumAddressTypes,p,a,b,c,d)
140 #define IDirectPlayLobby2_EnumLocalApplications(p,a,b,c)   ICOM_CALL3(EnumLocalApplications,p,a,b,c)
141 #define IDirectPlayLobby2_GetConnectionSettings(p,a,b,c)   ICOM_CALL3(GetConnectionSettings,p,a,b,c)
142 #define IDirectPlayLobby2_ReceiveLobbyMessage(p,a,b,c,d,e) ICOM_CALL5(ReceiveLobbyMessage,p,a,b,c,d,e)
143 #define IDirectPlayLobby2_RunApplication(p,a,b,c,d)        ICOM_CALL4(RunApplication,p,a,b,c,d)
144 #define IDirectPlayLobby2_SendLobbyMessage(p,a,b,c,d)      ICOM_CALL4(SendLobbyMessage,p,a,b,c,d)
145 #define IDirectPlayLobby2_SetConnectionSettings(p,a,b,c)   ICOM_CALL3(SetConnectionSettings,p,a,b,c)
146 #define IDirectPlayLobby2_SetLobbyMessageEvent(p,a,b,c)    ICOM_CALL3(SetLobbyMessageEvent,p,a,b,c)
147 /*** IDirectPlayLobby2 methods ***/
148 #define IDirectPlayLobby2_CreateCompoundAddress(p,a,b,c,d) ICOM_CALL4(CreateCompoundAddress,p,a,b,c,d)
149 #endif
150
151 #pragma pack(4)
152
153
154 #endif /* __WINE_DPLOBBY_H */