Release 1.1.37.
[wine/gsoc-2012-control.git] / dlls / dpnet / dpnet_private.h
blobbdd3f9d8b772b9dc4450f01d631a6451109ac478
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 #ifndef __WINE_CONFIG_H
25 # error You must include config.h to use this header
26 #endif
28 #include "dplay8.h"
29 #include "dplobby8.h"
31 *#include "dplay8sp.h"
34 /* DirectPlay8 Interfaces: */
35 typedef struct IDirectPlay8ClientImpl IDirectPlay8ClientImpl;
36 typedef struct IDirectPlay8AddressImpl IDirectPlay8AddressImpl;
37 typedef struct IDirectPlay8LobbiedApplicationImpl IDirectPlay8LobbiedApplicationImpl;
38 typedef struct IDirectPlay8PeerImpl IDirectPlay8PeerImpl;
39 typedef struct IDirectPlay8ThreadPoolImpl IDirectPlay8ThreadPoolImpl;
41 /* ------------------ */
42 /* IDirectPlay8Client */
43 /* ------------------ */
45 /*****************************************************************************
46 * IDirectPlay8Client implementation structure
48 struct IDirectPlay8ClientImpl
50 /* IUnknown fields */
51 const IDirectPlay8ClientVtbl *lpVtbl;
52 LONG ref;
53 /* IDirectPlay8Client fields */
56 /* ------------------- */
57 /* IDirectPlay8Address */
58 /* ------------------- */
60 /*****************************************************************************
61 * IDirectPlay8Address implementation structure
63 struct IDirectPlay8AddressImpl
65 /* IUnknown fields */
66 const IDirectPlay8AddressVtbl *lpVtbl;
67 LONG ref;
68 /* IDirectPlay8Address fields */
69 GUID SP_guid;
70 const WCHAR *url;
73 /*****************************************************************************
74 * IDirectPlay8LobbiedApplication implementation structure
76 struct IDirectPlay8LobbiedApplicationImpl
78 /* IUnknown fields */
79 const IDirectPlay8LobbiedApplicationVtbl *lpVtbl;
80 LONG ref;
81 /* IDirectPlay8LobbiedApplication fields */
84 /*****************************************************************************
85 * IDirectPlay8Peer implementation structure
87 struct IDirectPlay8PeerImpl
89 /* IUnknown fields */
90 const IDirectPlay8PeerVtbl *lpVtbl;
91 LONG ref;
94 /*****************************************************************************
95 * IDirectPlay8ThreadPool implementation structure
97 struct IDirectPlay8ThreadPoolImpl
99 /* IUnknown fields */
100 const IDirectPlay8ThreadPoolVtbl *lpVtbl;
101 LONG ref;
105 * factories
107 extern HRESULT DPNET_CreateDirectPlay8Client(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
108 extern HRESULT DPNET_CreateDirectPlay8Server(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
109 extern HRESULT DPNET_CreateDirectPlay8Peer(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
110 extern HRESULT DPNET_CreateDirectPlay8Address(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
111 extern HRESULT DPNET_CreateDirectPlay8LobbiedApp(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
112 extern HRESULT DPNET_CreateDirectPlay8ThreadPool(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj);
114 /* used for generic dumping (copied from ddraw) */
115 typedef struct {
116 DWORD val;
117 const char* name;
118 } flag_info;
120 typedef struct {
121 const GUID *guid;
122 const char* name;
123 } guid_info;
125 #define FE(x) { x, #x }
126 #define GE(x) { &x, #x }
130 #endif