Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

430 lines
20 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: DPLobby.h
  6. * Content: DirectPlay8 Lobby Include File
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 02/21/00 mjn Created
  12. * 03/22/2000 jtk Changed interface names
  13. * 04/25/2000 rmt Bug #s 33138, 33145, 33150
  14. * 04/26/00 mjn Removed dwTimeOut from Send() API call
  15. * 05/03/00 rmt Bug #33879 -- Status messsage missing from field
  16. * 05/04/00 rmt Bug #34146 - No PDIRECTPLAY8LOBBIEDAPPLICATION defined.
  17. * 05/08/00 rmt Bug #34301 - Addd flag to SetAppAvailable to allow user to specify multiple client connects.
  18. * rmt Bug #34492 - Added hrReason field to disconnect message
  19. * 06/07/00 rmt Bug #36382 - Splitting CLSID to fix whistler issues (CoCreate changed behaviour)
  20. * 06/09/00 rmt Updates to split CLSID and allow whistler compat and support external create funcs
  21. * 06/15/2000 rmt Bug #33617 - Must provide method for providing automatic launch of DirectPlay instances
  22. * 07/08/2000 rmt Bug #38725 - Need to provide method to detect if app was lobby launched
  23. * rmt Bug #38757 - Callback messages for connections may return AFTER WaitForConnection returns
  24. * rmt Bug #38755 - No way to specify player name in Connection Settings
  25. * rmt Bug #38758 - DPLOBBY8.H has incorrect comments
  26. * rmt Bug #38783 - pvUserApplicationContext is only partially implemented
  27. * rmt Added DPLHANDLE_ALLCONNECTIONS and dwFlags (reserved field to couple of funcs).
  28. * 03/17/2001 rmt WINBUG #342420 - Commented out create functions
  29. *
  30. *@@END_MSINTERNAL
  31. *
  32. ***************************************************************************/
  33. #ifndef __DPLOBBY_H__
  34. #define __DPLOBBY_H__
  35. #include <ole2.h>
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. /****************************************************************************
  40. *
  41. * DirectPlay8Lobby CLSIDs
  42. *
  43. ****************************************************************************/
  44. // {667955AD-6B3B-43ca-B949-BC69B5BAFF7F}
  45. DEFINE_GUID(CLSID_DirectPlay8LobbiedApplication,
  46. 0x667955ad, 0x6b3b, 0x43ca, 0xb9, 0x49, 0xbc, 0x69, 0xb5, 0xba, 0xff, 0x7f);
  47. // {3B2B6775-70B6-45af-8DEA-A209C69559F3}
  48. DEFINE_GUID(CLSID_DirectPlay8LobbyClient,
  49. 0x3b2b6775, 0x70b6, 0x45af, 0x8d, 0xea, 0xa2, 0x9, 0xc6, 0x95, 0x59, 0xf3);
  50. /****************************************************************************
  51. *
  52. * DirectPlay8Lobby Interface IIDs
  53. *
  54. ****************************************************************************/
  55. // {819074A3-016C-11d3-AE14-006097B01411}
  56. DEFINE_GUID(IID_IDirectPlay8LobbiedApplication,
  57. 0x819074a3, 0x16c, 0x11d3, 0xae, 0x14, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11);
  58. // {819074A2-016C-11d3-AE14-006097B01411}
  59. DEFINE_GUID(IID_IDirectPlay8LobbyClient,
  60. 0x819074a2, 0x16c, 0x11d3, 0xae, 0x14, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11);
  61. /****************************************************************************
  62. *
  63. * DirectPlay8Lobby Interface Pointer
  64. *
  65. ****************************************************************************/
  66. typedef struct IDirectPlay8LobbiedApplication *PDIRECTPLAY8LOBBIEDAPPLICATION;
  67. typedef struct IDirectPlay8LobbyClient *PDIRECTPLAY8LOBBYCLIENT;
  68. /****************************************************************************
  69. *
  70. * DirectPlay8 Lobby Message IDs
  71. *
  72. ****************************************************************************/
  73. #define DPL_MSGID_LOBBY 0x8000
  74. #define DPL_MSGID_RECEIVE (0x0001 | DPL_MSGID_LOBBY)
  75. #define DPL_MSGID_CONNECT (0x0002 | DPL_MSGID_LOBBY)
  76. #define DPL_MSGID_DISCONNECT (0x0003 | DPL_MSGID_LOBBY)
  77. #define DPL_MSGID_SESSION_STATUS (0x0004 | DPL_MSGID_LOBBY)
  78. #define DPL_MSGID_CONNECTION_SETTINGS (0x0005 | DPL_MSGID_LOBBY)
  79. /****************************************************************************
  80. *
  81. * DirectPlay8Lobby Constants
  82. *
  83. ****************************************************************************/
  84. //
  85. // Specifies that operation should be performed on all open connections
  86. //
  87. #define DPLHANDLE_ALLCONNECTIONS 0xFFFFFFFF
  88. //
  89. // The associated game session has suceeded in connecting / hosting
  90. //
  91. #define DPLSESSION_CONNECTED 0x0001
  92. // The associated game session failed connecting / hosting
  93. //
  94. #define DPLSESSION_COULDNOTCONNECT 0x0002
  95. //
  96. // The associated game session has disconnected
  97. //
  98. #define DPLSESSION_DISCONNECTED 0x0003
  99. //
  100. // The associated game session has terminated
  101. //
  102. #define DPLSESSION_TERMINATED 0x0004
  103. //
  104. // The associated game session's host has migrated
  105. //
  106. #define DPLSESSION_HOSTMIGRATED 0x0005
  107. //
  108. // The associated game session's host has migrated to the local client
  109. //
  110. #define DPLSESSION_HOSTMIGRATEDHERE 0x0006
  111. /****************************************************************************
  112. *
  113. * DirectPlay8 Lobby Flags
  114. *
  115. ****************************************************************************/
  116. //
  117. // Do not automatically make the lobby app unavailable when a connection is established
  118. //
  119. #define DPLAVAILABLE_ALLOWMULTIPLECONNECT 0x0001
  120. //
  121. // Launch a new instance of the application to connect to
  122. //
  123. #define DPLCONNECT_LAUNCHNEW 0x0001
  124. //
  125. // Launch a new instance of the application if one is not waiting
  126. //
  127. #define DPLCONNECT_LAUNCHNOTFOUND 0x0002
  128. //
  129. // When starting the associated game session, start it as a host
  130. //
  131. #define DPLCONNECTSETTINGS_HOST 0x0001
  132. //
  133. // Disable parameter validation
  134. //
  135. #define DPLINITIALIZE_DISABLEPARAMVAL 0x0001
  136. /****************************************************************************
  137. *
  138. * DirectPlay8Lobby Structures (Non-Message)
  139. *
  140. ****************************************************************************/
  141. //
  142. // Information on a registered game
  143. //
  144. typedef struct _DPL_APPLICATION_INFO {
  145. GUID guidApplication; // GUID of the application
  146. PWSTR pwszApplicationName; // Name of the application
  147. DWORD dwNumRunning; // # of instances of this application running
  148. DWORD dwNumWaiting; // # of instances of this application waiting
  149. DWORD dwFlags; // Flags
  150. } DPL_APPLICATION_INFO, *PDPL_APPLICATION_INFO;
  151. //
  152. // Settings to be used for connecting / hosting a game session
  153. //
  154. typedef struct _DPL_CONNECTION_SETTINGS {
  155. DWORD dwSize; // Size of this structure
  156. DWORD dwFlags; // Connection settings flags (DPLCONNECTSETTINGS_...)
  157. DPN_APPLICATION_DESC dpnAppDesc; // Application desc for the associated DirectPlay session
  158. IDirectPlay8Address *pdp8HostAddress; // Address of host to connect to
  159. IDirectPlay8Address **ppdp8DeviceAddresses; // Address of device to connect from / host on
  160. DWORD cNumDeviceAddresses; // # of addresses specified in ppdp8DeviceAddresses
  161. PWSTR pwszPlayerName; // Name to give the player
  162. } DPL_CONNECTION_SETTINGS, *PDPL_CONNECTION_SETTINGS;
  163. //
  164. // Information for performing a lobby connect
  165. // (ConnectApplication)
  166. //
  167. typedef struct _DPL_CONNECT_INFO {
  168. DWORD dwSize; // Size of this structure
  169. DWORD dwFlags; // Flags (DPLCONNECT_...)
  170. GUID guidApplication; // GUID of application to launch
  171. PDPL_CONNECTION_SETTINGS pdplConnectionSettings;
  172. // Settings application should use
  173. PVOID pvLobbyConnectData; // User defined data block
  174. DWORD dwLobbyConnectDataSize;
  175. // Size of user defined data block
  176. } DPL_CONNECT_INFO, *PDPL_CONNECT_INFO;
  177. //
  178. // Information for registering an application
  179. // (RegisterApplication)
  180. //
  181. typedef struct _DPL_PROGRAM_DESC {
  182. DWORD dwSize;
  183. DWORD dwFlags;
  184. GUID guidApplication; // Application GUID
  185. PWSTR pwszApplicationName; // Unicode application name
  186. PWSTR pwszCommandLine; // Unicode command line arguments
  187. PWSTR pwszCurrentDirectory; // Unicode current directory
  188. PWSTR pwszDescription; // Unicode application description
  189. PWSTR pwszExecutableFilename; // Unicode filename of application executable
  190. PWSTR pwszExecutablePath; // Unicode path of application executable
  191. PWSTR pwszLauncherFilename; // Unicode filename of launcher executable
  192. PWSTR pwszLauncherPath; // Unicode path of launcher executable
  193. } DPL_PROGRAM_DESC, *PDPL_PROGRAM_DESC;
  194. /****************************************************************************
  195. *
  196. * DirectPlay8 Lobby Message Structures
  197. *
  198. ****************************************************************************/
  199. //
  200. // A connection was established
  201. // (DPL_MSGID_CONNECT)
  202. //
  203. typedef struct _DPL_MESSAGE_CONNECT
  204. {
  205. DWORD dwSize; // Size of this structure
  206. DPNHANDLE hConnectId; // Handle of new connection
  207. PDPL_CONNECTION_SETTINGS pdplConnectionSettings; // Connection settings for this connection
  208. PVOID pvLobbyConnectData; // User defined lobby data block
  209. DWORD dwLobbyConnectDataSize; // Size of user defined lobby data block
  210. PVOID pvConnectionContext; // Context value for this connection (user set)
  211. } DPL_MESSAGE_CONNECT, *PDPL_MESSAGE_CONNECT;
  212. //
  213. // Connection settings have been updated
  214. // (DPL_MSGID_CONNECTION_SETTINGS)
  215. //
  216. typedef struct _DPL_MESSAGE_CONNECTION_SETTINGS
  217. {
  218. DWORD dwSize; // Size of this structure
  219. DPNHANDLE hSender; // Handle of the connection for these settings
  220. PDPL_CONNECTION_SETTINGS pdplConnectionSettings; // Connection settings
  221. PVOID pvConnectionContext; // Context value for this connection
  222. } DPL_MESSAGE_CONNECTION_SETTINGS, *PDPL_MESSAGE_CONNECTION_SETTINGS;
  223. //
  224. // A connection has been disconnected
  225. // (DPL_MSGID_DISCONNECT)
  226. //
  227. typedef struct _DPL_MESSAGE_DISCONNECT
  228. {
  229. DWORD dwSize; // Size of this structure
  230. DPNHANDLE hDisconnectId; // Handle of the connection that was terminated
  231. HRESULT hrReason; // Reason the connection was broken
  232. PVOID pvConnectionContext; // Context value for this connection
  233. } DPL_MESSAGE_DISCONNECT, *PDPL_MESSAGE_DISCONNECT;
  234. //
  235. // Data was received through a connection
  236. // (DPL_MSGID_RECEIVE)
  237. //
  238. typedef struct _DPL_MESSAGE_RECEIVE
  239. {
  240. DWORD dwSize; // Size of this structure
  241. DPNHANDLE hSender; // Handle of the connection that is from
  242. BYTE *pBuffer; // Contents of the message
  243. DWORD dwBufferSize; // Size of the message context
  244. PVOID pvConnectionContext; // Context value for this connection
  245. } DPL_MESSAGE_RECEIVE, *PDPL_MESSAGE_RECEIVE;
  246. //
  247. // Current status of the associated connection
  248. // (DPL_MSGID_SESSION_STATUS)
  249. //
  250. typedef struct _DPL_MESSAGE_SESSION_STATUS
  251. {
  252. DWORD dwSize; // Size of this structure
  253. DPNHANDLE hSender; // Handle of the connection that this is from
  254. DWORD dwStatus; // Status (DPLSESSION_...)
  255. PVOID pvConnectionContext; // Context value for this connection
  256. } DPL_MESSAGE_SESSION_STATUS, *PDPL_MESSAGE_SESSION_STATUS;
  257. /****************************************************************************
  258. *
  259. * DirectPlay8Lobby Create
  260. *
  261. ****************************************************************************/
  262. /*
  263. * This function is no longer supported. It is recommended that CoCreateInstance be used to create
  264. * DirectPlay8 lobby objects.
  265. *
  266. * extern HRESULT WINAPI DirectPlay8LobbyCreate( const GUID * pcIID, void **ppvInterface, IUnknown *pUnknown);
  267. *
  268. */
  269. /****************************************************************************
  270. *
  271. * DirectPlay8 Functions
  272. *
  273. ****************************************************************************/
  274. //
  275. // COM definition for DirectPlayLobbyClient
  276. //
  277. #undef INTERFACE // External COM Implementation
  278. #define INTERFACE IDirectPlay8LobbyClient
  279. DECLARE_INTERFACE_(IDirectPlay8LobbyClient,IUnknown)
  280. {
  281. // IUnknown methods
  282. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE;
  283. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  284. STDMETHOD_(ULONG,Release) (THIS) PURE;
  285. // IDirectPlayLobbyClient methods
  286. STDMETHOD(Initialize) (THIS_ const PVOID pvUserContext,const PFNDPNMESSAGEHANDLER pfn,const DWORD dwFlags) PURE;
  287. STDMETHOD(EnumLocalPrograms) (THIS_ GUID *const pGuidApplication,BYTE *const pEnumData,DWORD *const pdwEnumData,DWORD *const pdwItems, const DWORD dwFlags) PURE;
  288. STDMETHOD(ConnectApplication) (THIS_ DPL_CONNECT_INFO *const pdplConnectionInfo,const PVOID pvConnectionContext,DPNHANDLE *const hApplication,const DWORD dwTimeOut,const DWORD dwFlags) PURE;
  289. STDMETHOD(Send) (THIS_ const DPNHANDLE hConnection,BYTE *const pBuffer,const DWORD pBufferSize,const DWORD dwFlags) PURE;
  290. STDMETHOD(ReleaseApplication) (THIS_ const DPNHANDLE hConnection, const DWORD dwFlags ) PURE;
  291. STDMETHOD(Close) (THIS_ const DWORD dwFlags ) PURE;
  292. STDMETHOD(GetConnectionSettings) (THIS_ const DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS * const pdplSessionInfo, DWORD *pdwInfoSize, const DWORD dwFlags ) PURE;
  293. STDMETHOD(SetConnectionSettings) (THIS_ const DPNHANDLE hConnection, const DPL_CONNECTION_SETTINGS * const pdplSessionInfo, const DWORD dwFlags ) PURE;
  294. };
  295. //
  296. // COM definition for DirectPlayLobbiedApplication
  297. //
  298. #undef INTERFACE // External COM Implementation
  299. #define INTERFACE IDirectPlay8LobbiedApplication
  300. DECLARE_INTERFACE_(IDirectPlay8LobbiedApplication,IUnknown)
  301. {
  302. // IUnknown methods
  303. STDMETHOD(QueryInterface) (THIS_ REFIID riid,LPVOID *ppvObj) PURE;
  304. STDMETHOD_(ULONG,AddRef) (THIS) PURE;
  305. STDMETHOD_(ULONG,Release) (THIS) PURE;
  306. // IDirectPlayLobbiedApplication methods
  307. STDMETHOD(Initialize) (THIS_ const PVOID pvUserContext,const PFNDPNMESSAGEHANDLER pfn,DPNHANDLE * const pdpnhConnection, const DWORD dwFlags) PURE;
  308. STDMETHOD(RegisterProgram) (THIS_ PDPL_PROGRAM_DESC pdplProgramDesc,const DWORD dwFlags) PURE;
  309. STDMETHOD(UnRegisterProgram) (THIS_ GUID *pguidApplication,const DWORD dwFlags) PURE;
  310. STDMETHOD(Send) (THIS_ const DPNHANDLE hConnection,BYTE *const pBuffer,const DWORD pBufferSize,const DWORD dwFlags) PURE;
  311. STDMETHOD(SetAppAvailable) (THIS_ const BOOL fAvailable, const DWORD dwFlags ) PURE;
  312. STDMETHOD(UpdateStatus) (THIS_ const DPNHANDLE hConnection, const DWORD dwStatus, const DWORD dwFlags ) PURE;
  313. STDMETHOD(Close) (THIS_ const DWORD dwFlags ) PURE;
  314. STDMETHOD(GetConnectionSettings) (THIS_ const DPNHANDLE hConnection, DPL_CONNECTION_SETTINGS * const pdplSessionInfo, DWORD *pdwInfoSize, const DWORD dwFlags ) PURE;
  315. STDMETHOD(SetConnectionSettings) (THIS_ const DPNHANDLE hConnection, const DPL_CONNECTION_SETTINGS * const pdplSessionInfo, const DWORD dwFlags ) PURE;
  316. };
  317. /****************************************************************************
  318. *
  319. * DirectPlayLobby Interface Macros
  320. *
  321. ****************************************************************************/
  322. #if !defined(__cplusplus) || defined(CINTERFACE)
  323. #define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  324. #define IDirectPlay8LobbyClient_AddRef(p) (p)->lpVtbl->AddRef(p)
  325. #define IDirectPlay8LobbyClient_Release(p) (p)->lpVtbl->Release(p)
  326. #define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
  327. #define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->lpVtbl->EnumLocalPrograms(p,a,b,c,d,e)
  328. #define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->lpVtbl->ConnectApplication(p,a,b,c,d,e)
  329. #define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
  330. #define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->lpVtbl->ReleaseApplication(p,a,b)
  331. #define IDirectPlay8LobbyClient_Close(p,a) (p)->lpVtbl->Close(p,a)
  332. #define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
  333. #define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
  334. #define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
  335. #define IDirectPlay8LobbiedApplication_AddRef(p) (p)->lpVtbl->AddRef(p)
  336. #define IDirectPlay8LobbiedApplication_Release(p) (p)->lpVtbl->Release(p)
  337. #define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->lpVtbl->Initialize(p,a,b,c,d)
  338. #define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->lpVtbl->RegisterProgram(p,a,b)
  339. #define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->lpVtbl->UnRegisterProgram(p,a,b)
  340. #define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->lpVtbl->Send(p,a,b,c,d)
  341. #define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->lpVtbl->SetAppAvailable(p,a,b)
  342. #define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->lpVtbl->UpdateStatus(p,a,b,c)
  343. #define IDirectPlay8LobbiedApplication_Close(p,a) (p)->lpVtbl->Close(p,a)
  344. #define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetConnectionSettings(p,a,b,c,d)
  345. #define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->lpVtbl->SetConnectionSettings(p,a,b,c)
  346. #else /* C++ */
  347. #define IDirectPlay8LobbyClient_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  348. #define IDirectPlay8LobbyClient_AddRef(p) (p)->AddRef()
  349. #define IDirectPlay8LobbyClient_Release(p) (p)->Release()
  350. #define IDirectPlay8LobbyClient_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
  351. #define IDirectPlay8LobbyClient_EnumLocalPrograms(p,a,b,c,d,e) (p)->EnumLocalPrograms(a,b,c,d,e)
  352. #define IDirectPlay8LobbyClient_ConnectApplication(p,a,b,c,d,e) (p)->ConnectApplication(a,b,c,d,e)
  353. #define IDirectPlay8LobbyClient_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
  354. #define IDirectPlay8LobbyClient_ReleaseApplication(p,a,b) (p)->ReleaseApplication(a,b)
  355. #define IDirectPlay8LobbyClient_Close(p,a) (p)->Close(a)
  356. #define IDirectPlay8LobbyClient_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
  357. #define IDirectPlay8LobbyClient_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
  358. #define IDirectPlay8LobbiedApplication_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  359. #define IDirectPlay8LobbiedApplication_AddRef(p) (p)->AddRef()
  360. #define IDirectPlay8LobbiedApplication_Release(p) (p)->Release()
  361. #define IDirectPlay8LobbiedApplication_Initialize(p,a,b,c,d) (p)->Initialize(a,b,c,d)
  362. #define IDirectPlay8LobbiedApplication_RegisterProgram(p,a,b) (p)->RegisterProgram(a,b)
  363. #define IDirectPlay8LobbiedApplication_UnRegisterProgram(p,a,b) (p)->UnRegisterProgram(a,b)
  364. #define IDirectPlay8LobbiedApplication_Send(p,a,b,c,d) (p)->Send(a,b,c,d)
  365. #define IDirectPlay8LobbiedApplication_SetAppAvailable(p,a,b) (p)->SetAppAvailable(a,b)
  366. #define IDirectPlay8LobbiedApplication_UpdateStatus(p,a,b,c) (p)->UpdateStatus(a,b,c)
  367. #define IDirectPlay8LobbiedApplication_Close(p,a) (p)->Close(a)
  368. #define IDirectPlay8LobbiedApplication_GetConnectionSettings(p,a,b,c,d) (p)->GetConnectionSettings(a,b,c,d)
  369. #define IDirectPlay8LobbiedApplication_SetConnectionSettings(p,a,b,c) (p)->SetConnectionSettings(a,b,c)
  370. #endif
  371. #ifdef __cplusplus
  372. }
  373. #endif
  374. #endif // __DPLOBBY_H__