1 /*
2  * Copyright 1999, 2000 Peter Hunnisett
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 #ifndef __WINE_DPLAYX_GLOBAL
20 #define __WINE_DPLAYX_GLOBAL
21 
22 #include <wine/config.h>
23 
24 #include <stdarg.h>
25 
26 #define WIN32_NO_STATUS
27 #define _INC_WINDOWS
28 
29 #define COBJMACROS
30 #define NONAMELESSUNION
31 #define NONAMELESSSTRUCT
32 
33 #include <windef.h>
34 #include <winbase.h>
35 #include <winreg.h>
36 #include <dplay.h>
37 
38 #include <wine/debug.h>
39 #include <wine/unicode.h>
40 
41 #include "dplaysp.h"
42 #include "lobbysp.h"
43 #include "dplayx_queue.h"
44 #include "dplay_global.h"
45 #include "dplayx_messages.h"
46 #include "name_server.h"
47 
48 WINE_DEFAULT_DEBUG_CHANNEL(dplay);
49 
50 BOOL DPLAYX_ConstructData(void) DECLSPEC_HIDDEN;
51 BOOL DPLAYX_DestructData(void) DECLSPEC_HIDDEN;
52 
53 HRESULT DPLAYX_GetConnectionSettingsA ( DWORD dwAppID,
54                                         LPVOID lpData,
55                                         LPDWORD lpdwDataSize ) DECLSPEC_HIDDEN;
56 HRESULT DPLAYX_GetConnectionSettingsW ( DWORD dwAppID,
57                                         LPVOID lpData,
58                                         LPDWORD lpdwDataSize ) DECLSPEC_HIDDEN;
59 
60 HRESULT DPLAYX_SetConnectionSettingsA ( DWORD dwFlags,
61                                         DWORD dwAppID,
62                                         const DPLCONNECTION *lpConn ) DECLSPEC_HIDDEN;
63 HRESULT DPLAYX_SetConnectionSettingsW ( DWORD dwFlags,
64                                         DWORD dwAppID,
65                                         const DPLCONNECTION *lpConn ) DECLSPEC_HIDDEN;
66 
67 BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID ) DECLSPEC_HIDDEN;
68 
69 BOOL DPLAYX_WaitForConnectionSettings( BOOL bWait ) DECLSPEC_HIDDEN;
70 BOOL DPLAYX_AnyLobbiesWaitingForConnSettings(void) DECLSPEC_HIDDEN;
71 
72 BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
73                              HANDLE hStart, HANDLE hDeath, HANDLE hConnRead ) DECLSPEC_HIDDEN;
74 
75 BOOL DPLAYX_SetLobbyMsgThreadId( DWORD dwAppId, DWORD dwThreadId ) DECLSPEC_HIDDEN;
76 
77 
78 /* Convert a DP or DPL HRESULT code into a string for human consumption */
79 LPCSTR DPLAYX_HresultToString( HRESULT hr ) DECLSPEC_HIDDEN;
80 
81 #endif /* __WINE_DPLAYX_GLOBAL */
82