ReactOS 0.4.17-dev-934-g091855f
dpwsockx_dll.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Ismael Barros Barros
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_DPWSOCKX_DLL_H
20#define __WINE_DPWSOCKX_DLL_H
21
22#include "windef.h"
23#include "winbase.h"
24#include "winsock2.h"
25#include "winnt.h"
26#include "wine/dplaysp.h"
27#include "wine/list.h"
28#include "wine/rbtree.h"
29
30#define DPWS_MAXQUEUESIZE 0
31#define DPWS_HUNDREDBAUD 0
32#define DPWS_LATENCY 500
33#define DPWS_MAXLOCALPLAYERS 65536
34#define DPWS_TIMEOUT 5000
35#define DPWS_MAXBUFFERSIZE 65479
36#define DPWS_MAXPLAYERS 65536
37#define DPWS_GUARANTEED_MAXBUFFERSIZE 1048547
38#define DPWS_GUARANTEED_MAXPLAYERS 64
39
40#include "pshpack1.h"
41
42typedef struct tagDPSP_MSG_HEADER
43{
48
49typedef struct
50{
54
55#include "poppack.h"
56
59
61{
62 struct list entry;
64
69
71 char *buffer;
73
74 IDirectPlaySP *sp;
75};
76
77typedef struct
78{
82
83typedef struct
84{
87
91
92typedef struct
93{
98
99typedef struct
100{
103 struct rb_tree connectionRefs;
105
106typedef struct tagDPWS_DATA
107{
109
114
119 char buffer[ 65536 ];
120
125
130
131#define DPSP_MSG_TOKEN_REMOTE 0xFAB00000
132#define DPSP_MSG_TOKEN_FORWARDED 0xCAB00000
133#define DPSP_MSG_TOKEN_SERVER 0xBAB00000
134
135#define DPSP_MSG_MAKE_MIXED(s,t) ((s) | (t))
136#define DPSP_MSG_SIZE(m) ((m) & 0x000FFFFF)
137#define DPSP_MSG_TOKEN(m) ((m) & 0xFFF00000)
138
139
140
142
143#endif /* __WINE_DPWSOCKX_DLL_H */
Definition: list.h:39
HINTERNET connection
Definition: port.c:65
DWORD DPID
Definition: dplay.h:158
struct IDirectPlaySP * LPDIRECTPLAYSP
Definition: dplaysp.h:32
void DPWS_COMPLETION_ROUTINE(DPWS_IN_CONNECTION *connection)
Definition: dpwsockx_dll.h:58
struct tagDPWS_DATA DPWS_DATA
struct tagDPSP_MSG_HEADER DPSP_MSG_HEADER
HRESULT WINAPI SPInit(LPSPINITDATA)
struct tagDPSP_MSG_HEADER * LPDPSP_MSG_HEADER
const DPSP_MSG_HEADER * LPCDPSP_MSG_HEADER
Definition: dpwsockx_dll.h:47
struct tagDPWS_DATA * LPDPWS_DATA
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLuint buffer
Definition: glext.h:5915
uint32_t entry
Definition: isohybrid.c:63
SOCKADDR_IN addr
Definition: dpwsockx_dll.h:79
DPWS_OUT_CONNECTION * connection
Definition: dpwsockx_dll.h:96
DPWS_CONNECTION_KEY key
Definition: dpwsockx_dll.h:86
WSAOVERLAPPED overlapped
Definition: dpwsockx_dll.h:89
SOCKADDR_IN tcpAddr
Definition: dpwsockx_dll.h:51
SOCKADDR_IN udpAddr
Definition: dpwsockx_dll.h:52
Definition: rbtree.h:30
Definition: rbtree.h:40
SOCKADDR_IN SockAddr
Definition: dpwsockx_dll.h:45
struct rb_tree connections
Definition: dpwsockx_dll.h:124
struct list inConnections
Definition: dpwsockx_dll.h:113
WSABUF wsaBuffer
Definition: dpwsockx_dll.h:118
SOCKADDR_IN tcpAddr
Definition: dpwsockx_dll.h:111
WSAEVENT stopEvent
Definition: dpwsockx_dll.h:128
CRITICAL_SECTION sendCs
Definition: dpwsockx_dll.h:121
WSAEVENT acceptEvent
Definition: dpwsockx_dll.h:112
SOCKADDR_IN udpAddr
Definition: dpwsockx_dll.h:116
SOCKET udpSock
Definition: dpwsockx_dll.h:115
SOCKET tcpSock
Definition: dpwsockx_dll.h:110
DPWS_PLAYER nameserver
Definition: dpwsockx_dll.h:122
WSAOVERLAPPED overlapped
Definition: dpwsockx_dll.h:117
LPDIRECTPLAYSP lpISP
Definition: dpwsockx_dll.h:108
DPWS_CONNECTION_REF nameserverConnectionRef
Definition: dpwsockx_dll.h:123
IDirectPlaySP * sp
Definition: dpwsockx_dll.h:74
DPWS_COMPLETION_ROUTINE * completionRoutine
Definition: dpwsockx_dll.h:68
WSAOVERLAPPED overlapped
Definition: dpwsockx_dll.h:66
DPSP_MSG_HEADER header
Definition: dpwsockx_dll.h:70
uint32_t ULONG
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
DWORD WSAEVENT
Definition: winsock2.h:600
UINT_PTR SOCKET
Definition: winsock.h:41