dpwsockx: Implementation of GetCaps callback
[wine/gsoc_dplay.git] / dlls / dpwsockx / dpwsockx_dll.h
blob2ad5844038187751dab35698c3f2895b168c7c02
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 tagDPSP_MSG_HEADER
64 DWORD size; /* size & 0x000FFFFF, token & 0xFFF00000 */
65 SOCKADDR_IN SockAddr;
66 } DPSP_MSG_HEADER, *LPDPSP_MSG_HEADER;
67 typedef const DPSP_MSG_HEADER* LPCDPSP_MSG_HEADER;
69 /* DPSP_MSG_HEADER->token */
70 #define DPSP_MSG_TOKEN_REMOTE 0xFAB00000
71 #define DPSP_MSG_TOKEN_FORWARDED 0xCAB00000
72 #define DPSP_MSG_TOKEN_SERVER 0xBAB00000
75 HRESULT WINAPI SPInit( LPSPINITDATA );
77 #endif /* __WINE_DPWSOCKX_DLL_H */