[CABMAN]
[reactos.git] / reactos / dll / directx / dplayx / dplayx_global.h
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 #define WIN32_NO_STATUS
23 #define _INC_WINDOWS
24
25 #include <stdarg.h>
26
27 #include <windef.h>
28 #include <winbase.h>
29 //#include "winuser.h"
30 #include <dplay.h>
31
32 BOOL DPLAYX_ConstructData(void) DECLSPEC_HIDDEN;
33 BOOL DPLAYX_DestructData(void) DECLSPEC_HIDDEN;
34
35 HRESULT DPLAYX_GetConnectionSettingsA ( DWORD dwAppID,
36 LPVOID lpData,
37 LPDWORD lpdwDataSize ) DECLSPEC_HIDDEN;
38 HRESULT DPLAYX_GetConnectionSettingsW ( DWORD dwAppID,
39 LPVOID lpData,
40 LPDWORD lpdwDataSize ) DECLSPEC_HIDDEN;
41
42 HRESULT DPLAYX_SetConnectionSettingsA ( DWORD dwFlags,
43 DWORD dwAppID,
44 const DPLCONNECTION *lpConn ) DECLSPEC_HIDDEN;
45 HRESULT DPLAYX_SetConnectionSettingsW ( DWORD dwFlags,
46 DWORD dwAppID,
47 const DPLCONNECTION *lpConn ) DECLSPEC_HIDDEN;
48
49 BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID ) DECLSPEC_HIDDEN;
50
51 BOOL DPLAYX_WaitForConnectionSettings( BOOL bWait ) DECLSPEC_HIDDEN;
52 BOOL DPLAYX_AnyLobbiesWaitingForConnSettings(void) DECLSPEC_HIDDEN;
53
54 BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
55 HANDLE hStart, HANDLE hDeath, HANDLE hConnRead ) DECLSPEC_HIDDEN;
56
57 BOOL DPLAYX_SetLobbyMsgThreadId( DWORD dwAppId, DWORD dwThreadId ) DECLSPEC_HIDDEN;
58
59
60 /* Convert a DP or DPL HRESULT code into a string for human consumption */
61 LPCSTR DPLAYX_HresultToString( HRESULT hr ) DECLSPEC_HIDDEN;
62
63 #endif /* __WINE_DPLAYX_GLOBAL */