ntdll: Buffer pagemap reads in fill_working_set_info().
[wine.git] / dlls / dpnet / dpnet_private.h
blob13702549613fcc93ed68a3b9216c10cb153a47b5
1 /*
2 * DirectPlay8 (dpnet) private include file
4 * Copyright 2004 Raphael Junqueira
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_DPNET_PRIVATE_H
22 #define __WINE_DPNET_PRIVATE_H
24 #include <wine/list.h>
25 #include "winsock2.h"
27 #include "dplay8.h"
28 #include "dplobby8.h"
30 *#include "dplay8sp.h"
33 /* DirectPlay8 Interfaces: */
34 typedef struct IDirectPlay8ClientImpl IDirectPlay8ClientImpl;
35 typedef struct IDirectPlay8AddressImpl IDirectPlay8AddressImpl;
36 typedef struct IDirectPlay8LobbiedApplicationImpl IDirectPlay8LobbiedApplicationImpl;
37 typedef struct IDirectPlay8ThreadPoolImpl IDirectPlay8ThreadPoolImpl;
39 /* ------------------ */
40 /* IDirectPlay8Client */
41 /* ------------------ */
43 /*****************************************************************************
44 * IDirectPlay8Client implementation structure
46 struct IDirectPlay8ClientImpl
48 IDirectPlay8Client IDirectPlay8Client_iface;
49 LONG ref;
51 /* IDirectPlay8Client fields */
52 PFNDPNMESSAGEHANDLER msghandler;
53 DWORD flags;
54 void *usercontext;
55 WCHAR *username;
56 void *data;
57 DWORD datasize;
59 DPN_SP_CAPS spcaps;
62 /* ------------------- */
63 /* IDirectPlay8Address */
64 /* ------------------- */
65 struct component
67 struct list entry;
69 WCHAR *name;
70 DWORD type;
71 DWORD size;
73 union
75 DWORD value; /* DPNA_DATATYPE_DWORD */
76 GUID guid; /* DPNA_DATATYPE_GUID */
77 WCHAR *string; /* DPNA_DATATYPE_STRING */
78 char *ansi; /* DPNA_DATATYPE_STRING_ANSI */
79 void *binary; /* DPNA_DATATYPE_BINARY */
80 } data;
83 /*****************************************************************************
84 * IDirectPlay8Address implementation structure
86 struct IDirectPlay8AddressImpl
88 IDirectPlay8Address IDirectPlay8Address_iface;
89 LONG ref;
90 /* IDirectPlay8Address fields */
91 GUID SP_guid;
92 BOOL init;
94 struct component **components;
95 DWORD comp_count;
96 DWORD comp_array_size;
99 /*****************************************************************************
100 * IDirectPlay8LobbiedApplication implementation structure
102 struct IDirectPlay8LobbiedApplicationImpl
104 IDirectPlay8LobbiedApplication IDirectPlay8LobbiedApplication_iface;
105 LONG ref;
107 PFNDPNMESSAGEHANDLER msghandler;
108 DWORD flags;
109 void *usercontext;
110 DPNHANDLE *connection;
113 /*****************************************************************************
114 * IDirectPlay8ThreadPool implementation structure
116 struct IDirectPlay8ThreadPoolImpl
118 IDirectPlay8ThreadPool IDirectPlay8ThreadPool_iface;
119 LONG ref;
123 * factories
125 extern HRESULT DPNET_CreateDirectPlay8Client(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
126 extern HRESULT DPNET_CreateDirectPlay8Server(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
127 extern HRESULT DPNET_CreateDirectPlay8Peer(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
128 extern HRESULT DPNET_CreateDirectPlay8Address(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
129 extern HRESULT DPNET_CreateDirectPlay8LobbiedApp(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
130 extern HRESULT DPNET_CreateDirectPlay8ThreadPool(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
131 extern HRESULT DPNET_CreateDirectPlay8LobbyClient(IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, void **ppobj);
133 extern void init_dpn_sp_caps(DPN_SP_CAPS *dpnspcaps);
134 extern void init_winsock(void);
135 extern HRESULT enum_services_providers(const GUID * const service, DPN_SERVICE_PROVIDER_INFO * const info_buffer,
136 DWORD * const buf_size, DWORD * const returned);
138 /* used for generic dumping (copied from ddraw) */
139 typedef struct {
140 DWORD val;
141 const char* name;
142 } flag_info;
144 typedef struct {
145 const GUID *guid;
146 const char* name;
147 } guid_info;
149 #define FE(x) { x, #x }
150 #define GE(x) { &x, #x }
152 #endif