Fixed header dependencies to be fully compatible with the Windows
[wine/multimedia.git] / dlls / dplayx / dplayx_global.h
blob88443553bdd9525e8e0d11853603d895bce88a18
1 /*
2 * Copyright 1999, 2000 Peter Hunnisett
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_DPLAYX_GLOBAL
20 #define __WINE_DPLAYX_GLOBAL
22 #include <stdarg.h>
24 #include "windef.h"
25 #include "winbase.h"
26 #include "dplay.h"
28 BOOL DPLAYX_ConstructData(void);
29 BOOL DPLAYX_DestructData(void);
31 HRESULT DPLAYX_GetConnectionSettingsA ( DWORD dwAppID,
32 LPVOID lpData,
33 LPDWORD lpdwDataSize );
34 HRESULT DPLAYX_GetConnectionSettingsW ( DWORD dwAppID,
35 LPVOID lpData,
36 LPDWORD lpdwDataSize );
38 HRESULT DPLAYX_SetConnectionSettingsA ( DWORD dwFlags,
39 DWORD dwAppID,
40 LPDPLCONNECTION lpConn );
41 HRESULT DPLAYX_SetConnectionSettingsW ( DWORD dwFlags,
42 DWORD dwAppID,
43 LPDPLCONNECTION lpConn );
45 BOOL DPLAYX_CreateLobbyApplication( DWORD dwAppID );
46 BOOL DPLAYX_DestroyLobbyApplication( DWORD dwAppID );
48 BOOL DPLAYX_WaitForConnectionSettings( BOOL bWait );
49 BOOL DPLAYX_AnyLobbiesWaitingForConnSettings(void);
51 BOOL DPLAYX_SetLobbyHandles( DWORD dwAppID,
52 HANDLE hStart, HANDLE hDeath, HANDLE hConnRead );
53 BOOL DPLAYX_GetThisLobbyHandles( LPHANDLE lphStart,
54 LPHANDLE lphDeath,
55 LPHANDLE lphConnRead, BOOL bClearSetHandles );
57 LPDPSESSIONDESC2 DPLAYX_CopyAndAllocateLocalSession( UINT* index );
58 BOOL DPLAYX_CopyLocalSession( UINT* index, LPDPSESSIONDESC2 lpsd );
59 void DPLAYX_SetLocalSession( LPCDPSESSIONDESC2 lpsd );
61 BOOL DPLAYX_SetLobbyMsgThreadId( DWORD dwAppId, DWORD dwThreadId );
63 /* FIXME: This should not be here */
64 LPVOID DPLAYX_PrivHeapAlloc( DWORD flags, DWORD size );
65 void DPLAYX_PrivHeapFree( LPVOID addr );
67 LPSTR DPLAYX_strdupA( DWORD flags, LPCSTR str );
68 LPWSTR DPLAYX_strdupW( DWORD flags, LPCWSTR str );
69 /* FIXME: End shared data alloc which should be local */
72 /* Convert a DP or DPL HRESULT code into a string for human consumption */
73 LPCSTR DPLAYX_HresultToString( HRESULT hr );
75 #endif /* __WINE_DPLAYX_GLOBAL */