dplayx: Adjust GetCaps behaviour to documentation
[wine/gsoc_dplay.git] / dlls / dpwsockx / dpwsockx_dll.h
blob15cd188b1539ca66c7ad29e0bc387c3b9fca472e
1 /*
2 * Copyright 2008 Ismael Barros Barros
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_DPWSOCKX_DLL_H
20 #define __WINE_DPWSOCKX_DLL_H
22 #include "windef.h"
23 #include "winbase.h"
24 #include "winsock2.h"
25 #include "winnt.h"
26 #include "wine/dplaysp.h"
29 #define DPWS_MAXQUEUESIZE 0
30 #define DPWS_HUNDREDBAUD 0
31 #define DPWS_LATENCY 500
32 #define DPWS_MAXLOCALPLAYERS 65536
33 #define DPWS_TIMEOUT 5000
34 #define DPWS_MAXBUFFERSIZE 65507
35 #define DPWS_MAXPLAYERS 65536
36 #define DPWS_GUARANTEED_MAXBUFFERSIZE 1048575
37 #define DPWS_GUARANTEED_MAXPLAYERS 64
39 #define DPWS_PORT_RANGE_START 2300
40 #define DPWS_PORT_RANGE_END 2400
41 #define DPWS_DPLAYSRV_PORT 47624
45 typedef struct tagDPWS_THREADDATA
47 BOOL is_running;
48 SOCKET sock;
49 SOCKADDR_IN addr;
50 HANDLE handle;
51 LPDIRECTPLAYSP lpISP;
52 } DPWS_THREADDATA, *LPDPWS_THREADDATA;
54 typedef struct tagDPWS_DATA
56 SOCKET sock;
57 DPWS_THREADDATA tcp_listener, udp_listener, dplaysrv;
58 SOCKADDR_IN nameserverAddr;
59 LPDIRECTPLAYSP lpISP;
60 } DPWS_DATA, *LPDPWS_DATA;
62 typedef struct tagDPWS_PLAYER_DATA
64 SOCKADDR_IN tcpAddr;
65 SOCKADDR_IN udpAddr;
66 } DPWS_PLAYER_DATA, *LPDPWS_PLAYER_DATA;
68 typedef struct tagDPSP_MSG_HEADER
70 DWORD size; /* size & 0x000FFFFF, token & 0xFFF00000 */
71 SOCKADDR_IN SockAddr;
72 } DPSP_MSG_HEADER, *LPDPSP_MSG_HEADER;
73 typedef const DPSP_MSG_HEADER* LPCDPSP_MSG_HEADER;
75 /* DPSP_MSG_HEADER->token */
76 #define DPSP_MSG_TOKEN_REMOTE 0xFAB00000
77 #define DPSP_MSG_TOKEN_FORWARDED 0xCAB00000
78 #define DPSP_MSG_TOKEN_SERVER 0xBAB00000
81 HRESULT WINAPI SPInit( LPSPINITDATA );
83 #endif /* __WINE_DPWSOCKX_DLL_H */