| [5311] | 1 | // $Id: dplobby.h,v 1.6 2001-03-13 23:13:27 hugh Exp $
 | 
|---|
| [4] | 2 | #ifndef __WINE_DPLOBBY_H
 | 
|---|
 | 3 | #define __WINE_DPLOBBY_H
 | 
|---|
 | 4 | 
 | 
|---|
| [4315] | 5 | /* FIXME: GCC doesn't yet support annon structures so some of the structures defined here don't match the sdk exactly.
 | 
|---|
 | 6 |  * I've tried to come up with suitably terse names, but this file won't cut it for inclusion into a WineLib app.
 | 
|---|
 | 7 |  */
 | 
|---|
 | 8 | 
 | 
|---|
| [4] | 9 | #include "dplay.h"
 | 
|---|
 | 10 | 
 | 
|---|
| [945] | 11 | #ifdef __cplusplus
 | 
|---|
 | 12 | extern "C" {
 | 
|---|
 | 13 | #endif /* defined(__cplusplus) */
 | 
|---|
| [4] | 14 | 
 | 
|---|
| [945] | 15 | #include "pshpack1.h"
 | 
|---|
| [4] | 16 | 
 | 
|---|
 | 17 | /*****************************************************************************
 | 
|---|
 | 18 |  * Predeclare the interfaces
 | 
|---|
 | 19 |  */
 | 
|---|
 | 20 | DEFINE_GUID(CLSID_DirectPlayLobby, 0x2fe8f810, 0xb2a5, 0x11d0, 0xa7, 0x87, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
 | 
|---|
 | 21 | 
 | 
|---|
 | 22 | DEFINE_GUID(IID_IDirectPlayLobby, 0xaf465c71, 0x9588, 0x11cf, 0xa0, 0x20, 0x0, 0xaa, 0x0, 0x61, 0x57, 0xac);
 | 
|---|
 | 23 | typedef struct IDirectPlayLobby IDirectPlayLobby,*LPDIRECTPLAYLOBBY;
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | DEFINE_GUID(IID_IDirectPlayLobbyA, 0x26c66a70, 0xb367, 0x11cf, 0xa0, 0x24, 0x0, 0xaa, 0x0, 0x61, 0x57, 0xac);
 | 
|---|
 | 26 | typedef struct IDirectPlayLobby IDirectPlayLobbyA,*LPDIRECTPLAYLOBBYA;
 | 
|---|
 | 27 | 
 | 
|---|
 | 28 | DEFINE_GUID(IID_IDirectPlayLobby2, 0x194c220, 0xa303, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 29 | typedef struct IDirectPlayLobby2 IDirectPlayLobby2, *LPDIRECTPLAYLOBBY2;
 | 
|---|
 | 30 | 
 | 
|---|
 | 31 | DEFINE_GUID(IID_IDirectPlayLobby2A, 0x1bb4af80, 0xa303, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 32 | typedef struct IDirectPlayLobby2 IDirectPlayLobby2A, *LPDIRECTPLAYLOBBY2A;
 | 
|---|
 | 33 | 
 | 
|---|
| [4315] | 34 | DEFINE_GUID(IID_IDirectPlayLobby3, 0x2db72490, 0x652c, 0x11d1, 0xa7, 0xa8, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
 | 
|---|
 | 35 | typedef struct IDirectPlayLobby3 IDirectPlayLobby3, *LPDIRECTPLAYLOBBY3;
 | 
|---|
| [4] | 36 | 
 | 
|---|
| [4315] | 37 | DEFINE_GUID(IID_IDirectPlayLobby3A, 0x2db72491, 0x652c, 0x11d1, 0xa7, 0xa8, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
 | 
|---|
 | 38 | typedef struct IDirectPlayLobby3 IDirectPlayLobby3A, *LPDIRECTPLAYLOBBY3A;
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 | 
 | 
|---|
| [4] | 41 | /*****************************************************************************
 | 
|---|
| [4315] | 42 |  * DirectPlayLobby Property GUIDs used in lobby messages
 | 
|---|
 | 43 |  */
 | 
|---|
 | 44 | 
 | 
|---|
 | 45 | /* DPLPROPERTY_MessagesSupported {762CCDA1-D916-11d0-BA39-00C04FD7ED67}.
 | 
|---|
 | 46 |  * Purpose: Request if the lobby supports standard (?).
 | 
|---|
 | 47 |  * Response: Answer is a BOOL. TRUE if supports the standard (?) and FALSE otherwise. Of course, it might not respond at all.
 | 
|---|
 | 48 |  */
 | 
|---|
 | 49 | DEFINE_GUID(DPLPROPERTY_MessagesSupported, 0x762ccda1, 0xd916, 0x11d0, 0xba, 0x39, 0x0, 0xc0, 0x4f, 0xd7, 0xed, 0x67);
 | 
|---|
 | 50 | 
 | 
|---|
 | 51 | /* DPLPROPERTY_LobbyGuid {F56920A0-D218-11d0-BA39-00C04FD7ED67}.
 | 
|---|
 | 52 |  * Purpose: Request the GUID that identifies the lobby version that the application is communicating with.
 | 
|---|
 | 53 |  * Response: The GUID which identifies the lobby version
 | 
|---|
 | 54 |  */
 | 
|---|
 | 55 | DEFINE_GUID(DPLPROPERTY_LobbyGuid, 0xf56920a0, 0xd218, 0x11d0, 0xba, 0x39, 0x0, 0xc0, 0x4f, 0xd7, 0xed, 0x67);
 | 
|---|
 | 56 | 
 | 
|---|
 | 57 | /* DPLPROPERTY_PlayerGuid {B4319322-D20D-11d0-BA39-00C04FD7ED67}
 | 
|---|
 | 58 |  * Purpose: Request the GUID that identifies the player for this particular machine.
 | 
|---|
 | 59 |  * Response: DPLDATA_PLAYERDATA structure.
 | 
|---|
 | 60 |  */
 | 
|---|
 | 61 | DEFINE_GUID(DPLPROPERTY_PlayerGuid, 0xb4319322, 0xd20d, 0x11d0, 0xba, 0x39, 0x0, 0xc0, 0x4f, 0xd7, 0xed, 0x67);
 | 
|---|
 | 62 | 
 | 
|---|
 | 63 | /* DPLPROPERTY_PlayerScore {48784000-D219-11d0-BA39-00C04FD7ED67}
 | 
|---|
 | 64 |  * Purpose: Used to send a score of a player to the lobby. The format is an array of long integers.
 | 
|---|
 | 65 |  * Response: I don't think there is one.
 | 
|---|
 | 66 |  */
 | 
|---|
 | 67 | DEFINE_GUID(DPLPROPERTY_PlayerScore, 0x48784000, 0xd219, 0x11d0, 0xba, 0x39, 0x0, 0xc0, 0x4f, 0xd7, 0xed, 0x67);
 | 
|---|
 | 68 | 
 | 
|---|
 | 69 | 
 | 
|---|
 | 70 | 
 | 
|---|
 | 71 | /*****************************************************************************
 | 
|---|
 | 72 |  * LOBBY structures associated with GUID messages
 | 
|---|
 | 73 |  */
 | 
|---|
 | 74 | 
 | 
|---|
 | 75 | typedef struct tagDPLDATA_PLAYERGUID
 | 
|---|
 | 76 | {
 | 
|---|
 | 77 |         GUID    guidPlayer;
 | 
|---|
 | 78 |         DWORD   dwPlayerFlags;
 | 
|---|
 | 79 | } DPLDATA_PLAYERGUID, *LPDPLDATA_PLAYERGUID;
 | 
|---|
 | 80 | 
 | 
|---|
 | 81 | typedef struct tagDPLDATA_PLAYERSCORE
 | 
|---|
 | 82 | {
 | 
|---|
 | 83 |         DWORD   dwScoreCount;
 | 
|---|
 | 84 |         LONG    Score[1];
 | 
|---|
 | 85 | } DPLDATA_PLAYERSCORE, *LPDPLDATA_PLAYERSCORE;
 | 
|---|
 | 86 | 
 | 
|---|
 | 87 | 
 | 
|---|
 | 88 | /*****************************************************************************
 | 
|---|
 | 89 |  * LOBBY messages and message data structures.
 | 
|---|
 | 90 |  *
 | 
|---|
 | 91 |  * System messages can be identified by dwMessageFlags having a value of DPLMSG_SYSTEM
 | 
|---|
 | 92 |  * after a call to ReceiveLobbyMessage.
 | 
|---|
 | 93 |  *
 | 
|---|
 | 94 |  * Standard messages can be indentified by dwMessageFlags having a value of DPLMSG_STANDARD
 | 
|---|
 | 95 |  * after a call to ReceiveLobbyMessage.
 | 
|---|
 | 96 |  */
 | 
|---|
 | 97 | 
 | 
|---|
 | 98 | /* DPLobby1 definition required for backwards compatibility */
 | 
|---|
 | 99 | #define DPLMSG_SYSTEM                                   0x00000001
 | 
|---|
 | 100 | #define DPLMSG_STANDARD                                 0x00000002
 | 
|---|
 | 101 | #define DPLAD_SYSTEM          DPLMSG_SYSTEM
 | 
|---|
 | 102 | 
 | 
|---|
 | 103 | 
 | 
|---|
 | 104 | /* System messages  - dwType field for messages */
 | 
|---|
 | 105 | #define DPLSYS_CONNECTIONSETTINGSREAD   0x00000001
 | 
|---|
 | 106 | #define DPLSYS_DPLAYCONNECTFAILED       0x00000002
 | 
|---|
 | 107 | #define DPLSYS_DPLAYCONNECTSUCCEEDED    0x00000003
 | 
|---|
 | 108 | #define DPLSYS_APPTERMINATED            0x00000004
 | 
|---|
 | 109 | #define DPLSYS_SETPROPERTY              0x00000005
 | 
|---|
 | 110 | #define DPLSYS_SETPROPERTYRESPONSE      0x00000006
 | 
|---|
 | 111 | #define DPLSYS_GETPROPERTY              0x00000007
 | 
|---|
 | 112 | #define DPLSYS_GETPROPERTYRESPONSE      0x00000008
 | 
|---|
 | 113 | #define DPLSYS_NEWSESSIONHOST           0x00000009
 | 
|---|
 | 114 | #define DPLSYS_NEWCONNECTIONSETTINGS    0x0000000A
 | 
|---|
 | 115 | 
 | 
|---|
 | 116 | 
 | 
|---|
 | 117 | 
 | 
|---|
 | 118 | /* Used to indentify the message type */
 | 
|---|
 | 119 | typedef struct tagDPLMSG_GENERIC
 | 
|---|
 | 120 | {
 | 
|---|
 | 121 |     DWORD       dwType;         /* Message type */
 | 
|---|
 | 122 | } DPLMSG_GENERIC, *LPDPLMSG_GENERIC;
 | 
|---|
 | 123 | 
 | 
|---|
 | 124 | /* Generic format for system messages - see above */
 | 
|---|
 | 125 | typedef struct tagDPLMSG_SYSTEMMESSAGE
 | 
|---|
 | 126 | {
 | 
|---|
 | 127 |     DWORD       dwType;         /* Message type */
 | 
|---|
 | 128 |     GUID        guidInstance;   /* Instance GUID of the dplay session the message corresponds to */
 | 
|---|
 | 129 | } DPLMSG_SYSTEMMESSAGE, *LPDPLMSG_SYSTEMMESSAGE;
 | 
|---|
 | 130 | 
 | 
|---|
 | 131 | /* Generic message to set a property - see property GUIDs above */
 | 
|---|
 | 132 | typedef struct tagDPLMSG_SETPROPERTY
 | 
|---|
 | 133 | {
 | 
|---|
 | 134 |         DWORD   dwType;              /* Message type */
 | 
|---|
 | 135 |         DWORD   dwRequestID;         /* Request ID (DPL_NOCONFIRMATION if no confirmation desired) */
 | 
|---|
 | 136 |         GUID    guidPlayer;          /* Player GUID */
 | 
|---|
 | 137 |         GUID    guidPropertyTag;     /* Property GUID */
 | 
|---|
 | 138 |         DWORD   dwDataSize;          /* Size of data */
 | 
|---|
 | 139 |         DWORD   dwPropertyData[1];   /* Buffer containing data */
 | 
|---|
 | 140 | } DPLMSG_SETPROPERTY, *LPDPLMSG_SETPROPERTY;
 | 
|---|
 | 141 | 
 | 
|---|
 | 142 | #define DPL_NOCONFIRMATION                      0L
 | 
|---|
 | 143 | 
 | 
|---|
 | 144 | /* Reply to DPLMSG_SETPROPERTY */
 | 
|---|
 | 145 | typedef struct tagDPLMSG_SETPROPERTYRESPONSE
 | 
|---|
 | 146 | {
 | 
|---|
 | 147 |         DWORD   dwType;              /* Message type */
 | 
|---|
 | 148 |         DWORD   dwRequestID;         /* Request ID */
 | 
|---|
 | 149 |         GUID    guidPlayer;          /* Player GUID */
 | 
|---|
 | 150 |         GUID    guidPropertyTag;     /* Property GUID */
 | 
|---|
 | 151 |         HRESULT hr;                  /* Return Code */
 | 
|---|
 | 152 | } DPLMSG_SETPROPERTYRESPONSE, *LPDPLMSG_SETPROPERTYRESPONSE;
 | 
|---|
 | 153 | 
 | 
|---|
 | 154 | /* Request to get the present value of a property */
 | 
|---|
 | 155 | typedef struct tagDPLMSG_GETPROPERTY
 | 
|---|
 | 156 | {
 | 
|---|
 | 157 |         DWORD   dwType;           /* Message type */
 | 
|---|
 | 158 |         DWORD   dwRequestID;      /* Request ID */
 | 
|---|
 | 159 |         GUID    guidPlayer;       /* Player GUID */
 | 
|---|
 | 160 |         GUID    guidPropertyTag;  /* Property GUID */
 | 
|---|
 | 161 | } DPLMSG_GETPROPERTY, *LPDPLMSG_GETPROPERTY;
 | 
|---|
 | 162 | 
 | 
|---|
 | 163 | /* Response to a request to get the present value of a property */
 | 
|---|
 | 164 | typedef struct tagDPLMSG_GETPROPERTYRESPONSE
 | 
|---|
 | 165 | {
 | 
|---|
 | 166 |         DWORD   dwType;              /* Message type */
 | 
|---|
 | 167 |         DWORD   dwRequestID;         /* Request ID */
 | 
|---|
 | 168 |         GUID    guidPlayer;          /* Player GUID */
 | 
|---|
 | 169 |         GUID    guidPropertyTag;     /* Property GUID */
 | 
|---|
 | 170 |         HRESULT hr;                  /* Return Code */
 | 
|---|
 | 171 |         DWORD   dwDataSize;          /* Size of data */
 | 
|---|
 | 172 |         DWORD   dwPropertyData[1];   /* Buffer containing data */
 | 
|---|
 | 173 | } DPLMSG_GETPROPERTYRESPONSE, *LPDPLMSG_GETPROPERTYRESPONSE;
 | 
|---|
 | 174 | 
 | 
|---|
 | 175 | /* Standard message in response to a session host migration to a new client */
 | 
|---|
 | 176 | typedef struct tagDPLMSG_NEWSESSIONHOST
 | 
|---|
 | 177 | {
 | 
|---|
 | 178 |     DWORD   dwType;        /* Message type */
 | 
|---|
 | 179 |     GUID    guidInstance;  /* GUID Instance of the session */
 | 
|---|
 | 180 | } DPLMSG_NEWSESSIONHOST, *LPDPLMSG_NEWSESSIONHOST;
 | 
|---|
 | 181 | 
 | 
|---|
 | 182 | /*****************************************************************************
 | 
|---|
 | 183 |  * DirectPlay Address ID's
 | 
|---|
 | 184 |  * A DirectPlay address is composed of multiple data chunks, each assocated with
 | 
|---|
 | 185 |  * a GUID to give significance to the type of data. All chunks have an associated
 | 
|---|
 | 186 |  * size so that unknown chunks can be ignored for backwards compatibility!
 | 
|---|
 | 187 |  * EnumAddresses function is used to parse the address data chunks.
 | 
|---|
 | 188 |  */
 | 
|---|
 | 189 | 
 | 
|---|
 | 190 | /* DPAID_TotalSize {1318F560-912C-11d0-9DAA-00A0C90A43CB}
 | 
|---|
 | 191 |  * Chunk purpose: Chunk is a DWORD containing the size of the entire DPADDRESS struct
 | 
|---|
 | 192 |  */
 | 
|---|
 | 193 | DEFINE_GUID(DPAID_TotalSize, 0x1318f560, 0x912c, 0x11d0, 0x9d, 0xaa, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
 | 
|---|
 | 194 | 
 | 
|---|
 | 195 | /* DPAID_ServiceProvider {07D916C0-E0AF-11cf-9C4E-00A0C905425E}
 | 
|---|
 | 196 |  * Chunk purpose: Chunk is a GUID indicated what service provider created the chunk.
 | 
|---|
 | 197 |  */
 | 
|---|
 | 198 | DEFINE_GUID(DPAID_ServiceProvider, 0x7d916c0, 0xe0af, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 199 | 
 | 
|---|
 | 200 | /* DPAID_LobbyProvider {59B95640-9667-11d0-A77D-0000F803ABFC}
 | 
|---|
 | 201 |  * Chunk purpose: Chunk is a GUID indicating what lobby provider created the chunk.
 | 
|---|
 | 202 |  */
 | 
|---|
 | 203 | DEFINE_GUID(DPAID_LobbyProvider, 0x59b95640, 0x9667, 0x11d0, 0xa7, 0x7d, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
 | 
|---|
 | 204 | 
 | 
|---|
 | 205 | /* DPAID_Phone  {78EC89A0-E0AF-11cf-9C4E-00A0C905425E} -- ANSI
 | 
|---|
 | 206 |  * DPAID_PhoneW {BA5A7A70-9DBF-11d0-9CC1-00A0C905425E} -- UNICODE
 | 
|---|
 | 207 |  * Chunk purpose: Chunk is a phone number in ANSI or UNICODE format
 | 
|---|
 | 208 |  */
 | 
|---|
 | 209 | DEFINE_GUID(DPAID_Phone, 0x78ec89a0, 0xe0af, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 210 | DEFINE_GUID(DPAID_PhoneW, 0xba5a7a70, 0x9dbf, 0x11d0, 0x9c, 0xc1, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 211 | 
 | 
|---|
 | 212 | /* DPAID_Modem  {F6DCC200-A2FE-11d0-9C4F-00A0C905425E} -- ANSI
 | 
|---|
 | 213 |  * DPAID_ModemW {01FD92E0-A2FF-11d0-9C4F-00A0C905425E} -- UNICODE
 | 
|---|
 | 214 |  * Chunk purpose: Chunk is a modem name registered with TAPI
 | 
|---|
 | 215 |  */
 | 
|---|
 | 216 | DEFINE_GUID(DPAID_Modem, 0xf6dcc200, 0xa2fe, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 217 | DEFINE_GUID(DPAID_ModemW, 0x1fd92e0, 0xa2ff, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 218 | 
 | 
|---|
 | 219 | /* DPAID_INet  {C4A54DA0-E0AF-11cf-9C4E-00A0C905425E} -- ANSI
 | 
|---|
 | 220 |  * DPAID_INetW {E63232A0-9DBF-11d0-9CC1-00A0C905425E} -- UNICODE
 | 
|---|
 | 221 |  * Chunk purpose: Chunk is a string containing a TCP/IP host name or IP address
 | 
|---|
 | 222 |  */
 | 
|---|
 | 223 | DEFINE_GUID(DPAID_INet, 0xc4a54da0, 0xe0af, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 224 | DEFINE_GUID(DPAID_INetW, 0xe63232a0, 0x9dbf, 0x11d0, 0x9c, 0xc1, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 225 | 
 | 
|---|
 | 226 | /* DPAID_INetPort {E4524541-8EA5-11d1-8A96-006097B01411}
 | 
|---|
 | 227 |  * Chunk purpose: Chunk is a port number used for creating TCP and UDP sockets. (WORD)
 | 
|---|
 | 228 |  */
 | 
|---|
 | 229 | DEFINE_GUID(DPAID_INetPort, 0xe4524541, 0x8ea5, 0x11d1, 0x8a, 0x96, 0x0, 0x60, 0x97, 0xb0, 0x14, 0x11);
 | 
|---|
 | 230 | 
 | 
|---|
 | 231 | /* DPAID_ComPort {F2F0CE00-E0AF-11cf-9C4E-00A0C905425E}
 | 
|---|
 | 232 |  * Chunk purpose: Chunk contains the description of a serial port.
 | 
|---|
 | 233 |  */
 | 
|---|
 | 234 | DEFINE_GUID(DPAID_ComPort, 0xf2f0ce00, 0xe0af, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
 | 
|---|
 | 235 | 
 | 
|---|
 | 236 | 
 | 
|---|
 | 237 | /* Header block for address data elements */
 | 
|---|
 | 238 | typedef struct tagDPADDRESS
 | 
|---|
 | 239 | {
 | 
|---|
 | 240 |     GUID                guidDataType;
 | 
|---|
 | 241 |     DWORD               dwDataSize;
 | 
|---|
 | 242 | } DPADDRESS, *LPDPADDRESS;
 | 
|---|
 | 243 | 
 | 
|---|
 | 244 | 
 | 
|---|
 | 245 | /* Used for specification of a communication port. Baud rate, stop bits and
 | 
|---|
 | 246 |  * parity bits can be found in winbase.h. These are flow control constants only.
 | 
|---|
 | 247 |  */
 | 
|---|
 | 248 | #define DPCPA_NOFLOW        0           /* no flow control */
 | 
|---|
 | 249 | #define DPCPA_XONXOFFFLOW   1           /* software flow control */
 | 
|---|
 | 250 | #define DPCPA_RTSFLOW       2           /* hardware flow control with RTS */
 | 
|---|
 | 251 | #define DPCPA_DTRFLOW       3           /* hardware flow control with DTR */
 | 
|---|
 | 252 | #define DPCPA_RTSDTRFLOW    4           /* hardware flow control with RTS and DTR */
 | 
|---|
 | 253 | 
 | 
|---|
 | 254 | typedef struct tagDPCOMPORTADDRESS
 | 
|---|
 | 255 | {
 | 
|---|
 | 256 |     DWORD   dwComPort;                  /* COM port to use (1-4) */
 | 
|---|
 | 257 |     DWORD   dwBaudRate;                 /* baud rate (100-256k) */
 | 
|---|
 | 258 |     DWORD   dwStopBits;                 /* no. stop bits (1-2) */
 | 
|---|
 | 259 |     DWORD   dwParity;                   /* parity (none, odd, even, mark) */
 | 
|---|
 | 260 |     DWORD   dwFlowControl;              /* flow control (none, xon/xoff, rts, dtr) */
 | 
|---|
 | 261 | } DPCOMPORTADDRESS, *LPDPCOMPORTADDRESS;
 | 
|---|
 | 262 | 
 | 
|---|
 | 263 | 
 | 
|---|
 | 264 | 
 | 
|---|
 | 265 | /****************************************************************************
 | 
|---|
| [4] | 266 |  * Miscellaneous
 | 
|---|
 | 267 |  */
 | 
|---|
 | 268 | 
 | 
|---|
 | 269 | typedef struct tagDPLAPPINFO
 | 
|---|
 | 270 | {
 | 
|---|
| [945] | 271 |     DWORD       dwSize;
 | 
|---|
 | 272 |     GUID        guidApplication;
 | 
|---|
| [4] | 273 | 
 | 
|---|
| [4315] | 274 |     union
 | 
|---|
| [4] | 275 |     {
 | 
|---|
| [945] | 276 |         LPSTR   lpszAppNameA;
 | 
|---|
| [4] | 277 |         LPWSTR  lpszAppName;
 | 
|---|
| [5311] | 278 |     } DUMMYUNIONNAME;
 | 
|---|
| [4] | 279 | 
 | 
|---|
 | 280 | } DPLAPPINFO, *LPDPLAPPINFO;
 | 
|---|
 | 281 | typedef const DPLAPPINFO *LPCDPLAPPINFO;
 | 
|---|
 | 282 | 
 | 
|---|
 | 283 | typedef struct DPCOMPOUNDADDRESSELEMENT
 | 
|---|
 | 284 | {
 | 
|---|
 | 285 |     GUID    guidDataType;
 | 
|---|
 | 286 |     DWORD   dwDataSize;
 | 
|---|
 | 287 |     LPVOID  lpData;
 | 
|---|
 | 288 | } DPCOMPOUNDADDRESSELEMENT, *LPDPCOMPOUNDADDRESSELEMENT;
 | 
|---|
 | 289 | typedef const DPCOMPOUNDADDRESSELEMENT *LPCDPCOMPOUNDADDRESSELEMENT;
 | 
|---|
 | 290 | 
 | 
|---|
| [4315] | 291 | typedef struct tagDPAPPLICATIONDESC
 | 
|---|
 | 292 | {
 | 
|---|
 | 293 |     DWORD       dwSize;
 | 
|---|
 | 294 |     DWORD       dwFlags;
 | 
|---|
| [4] | 295 | 
 | 
|---|
| [4315] | 296 |     union
 | 
|---|
 | 297 |     {
 | 
|---|
 | 298 |         LPSTR       lpszApplicationNameA;
 | 
|---|
 | 299 |         LPWSTR      lpszApplicationName;
 | 
|---|
| [5311] | 300 |     } DUMMYUNIONNAME1;
 | 
|---|
| [4] | 301 | 
 | 
|---|
| [4315] | 302 |     GUID        guidApplication;
 | 
|---|
| [4] | 303 | 
 | 
|---|
| [4315] | 304 |     union
 | 
|---|
 | 305 |     {
 | 
|---|
 | 306 |         LPSTR       lpszFilenameA;
 | 
|---|
 | 307 |         LPWSTR      lpszFilename;
 | 
|---|
| [5311] | 308 |     } DUMMYUNIONNAME2;
 | 
|---|
| [4] | 309 | 
 | 
|---|
| [4315] | 310 |     union
 | 
|---|
 | 311 |     {
 | 
|---|
 | 312 |         LPSTR       lpszCommandLineA;
 | 
|---|
 | 313 |         LPWSTR      lpszCommandLine;
 | 
|---|
| [5311] | 314 |     } DUMMYUNIONNAME3;
 | 
|---|
| [4315] | 315 | 
 | 
|---|
 | 316 |     union
 | 
|---|
 | 317 |     {
 | 
|---|
 | 318 |         LPSTR       lpszPathA;
 | 
|---|
 | 319 |         LPWSTR      lpszPath;
 | 
|---|
| [5311] | 320 |     } DUMMYUNIONNAME4;
 | 
|---|
| [4315] | 321 | 
 | 
|---|
 | 322 |     union
 | 
|---|
 | 323 |     {
 | 
|---|
 | 324 |         LPSTR       lpszCurrentDirectoryA;
 | 
|---|
 | 325 |         LPWSTR      lpszCurrentDirectory;
 | 
|---|
| [5311] | 326 |     } DUMMYUNIONNAME5;
 | 
|---|
| [4315] | 327 | 
 | 
|---|
 | 328 |     LPSTR       lpszDescriptionA;
 | 
|---|
 | 329 |     LPWSTR      lpszDescriptionW;
 | 
|---|
 | 330 | 
 | 
|---|
 | 331 | } DPAPPLICATIONDESC, *LPDPAPPLICATIONDESC;
 | 
|---|
 | 332 | 
 | 
|---|
 | 333 | 
 | 
|---|
 | 334 | 
 | 
|---|
 | 335 | extern HRESULT WINAPI DirectPlayLobbyCreateW(LPGUID, LPDIRECTPLAYLOBBY*,  IUnknown*, LPVOID, DWORD );
 | 
|---|
 | 336 | extern HRESULT WINAPI DirectPlayLobbyCreateA(LPGUID, LPDIRECTPLAYLOBBYA*, IUnknown*, LPVOID, DWORD );
 | 
|---|
 | 337 | 
 | 
|---|
 | 338 | 
 | 
|---|
 | 339 | 
 | 
|---|
 | 340 | typedef BOOL (* CALLBACK LPDPENUMADDRESSCALLBACK)(
 | 
|---|
| [4] | 341 |     REFGUID         guidDataType,
 | 
|---|
 | 342 |     DWORD           dwDataSize,
 | 
|---|
 | 343 |     LPCVOID         lpData,
 | 
|---|
 | 344 |     LPVOID          lpContext );
 | 
|---|
 | 345 | 
 | 
|---|
| [4315] | 346 | typedef BOOL (* CALLBACK LPDPLENUMADDRESSTYPESCALLBACK)(
 | 
|---|
| [4] | 347 |     REFGUID         guidDataType,
 | 
|---|
 | 348 |     LPVOID          lpContext,
 | 
|---|
 | 349 |     DWORD           dwFlags );
 | 
|---|
 | 350 | 
 | 
|---|
| [4315] | 351 | typedef BOOL (* CALLBACK LPDPLENUMLOCALAPPLICATIONSCALLBACK)(
 | 
|---|
| [4] | 352 |     LPCDPLAPPINFO   lpAppInfo,
 | 
|---|
 | 353 |     LPVOID          lpContext,
 | 
|---|
 | 354 |     DWORD           dwFlags );
 | 
|---|
 | 355 | 
 | 
|---|
| [945] | 356 | #include "poppack.h"
 | 
|---|
| [4] | 357 | 
 | 
|---|
 | 358 | /*****************************************************************************
 | 
|---|
| [4315] | 359 |  * IDirectPlayLobby and IDirectPlayLobbyA interface
 | 
|---|
| [4] | 360 |  */
 | 
|---|
 | 361 | #define ICOM_INTERFACE IDirectPlayLobby
 | 
|---|
 | 362 | #define IDirectPlayLobby_METHODS \
 | 
|---|
| [945] | 363 |     ICOM_METHOD3(HRESULT,Connect,               DWORD,arg1, LPDIRECTPLAY2*,arg2, IUnknown*,arg3) \
 | 
|---|
 | 364 |     ICOM_METHOD6(HRESULT,CreateAddress,         REFGUID,arg1, REFGUID,arg2, LPCVOID,arg3, DWORD,arg4, LPVOID,arg5, LPDWORD,arg6) \
 | 
|---|
 | 365 |     ICOM_METHOD4(HRESULT,EnumAddress,           LPDPENUMADDRESSCALLBACK,arg1, LPCVOID,arg2, DWORD,arg3, LPVOID,arg4) \
 | 
|---|
 | 366 |     ICOM_METHOD4(HRESULT,EnumAddressTypes,      LPDPLENUMADDRESSTYPESCALLBACK,arg1, REFGUID,arg2, LPVOID,arg3, DWORD,arg4) \
 | 
|---|
 | 367 |     ICOM_METHOD3(HRESULT,EnumLocalApplications, LPDPLENUMLOCALAPPLICATIONSCALLBACK,arg1, LPVOID,arg2, DWORD,arg3) \
 | 
|---|
 | 368 |     ICOM_METHOD3(HRESULT,GetConnectionSettings, DWORD,arg1, LPVOID,arg2, LPDWORD,arg3) \
 | 
|---|
 | 369 |     ICOM_METHOD5(HRESULT,ReceiveLobbyMessage,   DWORD,arg1, DWORD,arg2, LPDWORD,arg3, LPVOID,arg4, LPDWORD,arg5) \
 | 
|---|
 | 370 |     ICOM_METHOD4(HRESULT,RunApplication,        DWORD,arg1, LPDWORD,arg2, LPDPLCONNECTION,arg3, HANDLE,arg4) \
 | 
|---|
 | 371 |     ICOM_METHOD4(HRESULT,SendLobbyMessage,      DWORD,arg1, DWORD,arg2, LPVOID,arg3, DWORD,arg4) \
 | 
|---|
 | 372 |     ICOM_METHOD3(HRESULT,SetConnectionSettings, DWORD,arg1, DWORD,arg2, LPDPLCONNECTION,arg3) \
 | 
|---|
 | 373 |     ICOM_METHOD3(HRESULT,SetLobbyMessageEvent,  DWORD,arg1, DWORD,arg2, HANDLE,arg3)
 | 
|---|
| [4] | 374 | #define IDirectPlayLobby_IMETHODS \
 | 
|---|
 | 375 |     IUnknown_IMETHODS \
 | 
|---|
 | 376 |     IDirectPlayLobby_METHODS
 | 
|---|
 | 377 | ICOM_DEFINE(IDirectPlayLobby,IUnknown)
 | 
|---|
 | 378 | #undef ICOM_INTERFACE
 | 
|---|
 | 379 | 
 | 
|---|
 | 380 | /*****************************************************************************
 | 
|---|
| [4315] | 381 |  * IDirectPlayLobby2 and IDirectPlayLobby2A interface
 | 
|---|
| [4] | 382 |  */
 | 
|---|
 | 383 | #define ICOM_INTERFACE IDirectPlayLobby2
 | 
|---|
 | 384 | #define IDirectPlayLobby2_METHODS \
 | 
|---|
| [945] | 385 |     ICOM_METHOD4(HRESULT,CreateCompoundAddress, LPCDPCOMPOUNDADDRESSELEMENT,arg1, DWORD,arg2, LPVOID,arg3, LPDWORD,arg4)
 | 
|---|
| [4] | 386 | #define IDirectPlayLobby2_IMETHODS \
 | 
|---|
 | 387 |     IDirectPlayLobby_IMETHODS \
 | 
|---|
 | 388 |     IDirectPlayLobby2_METHODS
 | 
|---|
 | 389 | ICOM_DEFINE(IDirectPlayLobby2,IDirectPlayLobby)
 | 
|---|
 | 390 | #undef ICOM_INTERFACE
 | 
|---|
 | 391 | 
 | 
|---|
| [4315] | 392 | /*****************************************************************************
 | 
|---|
 | 393 |  * IDirectPlayLobby3 and IDirectPlayLobby3A interface
 | 
|---|
 | 394 |  */
 | 
|---|
 | 395 | #define ICOM_INTERFACE IDirectPlayLobby3
 | 
|---|
 | 396 | #define IDirectPlayLobby3_METHODS \
 | 
|---|
 | 397 |     ICOM_METHOD4( HRESULT, ConnectEx,                 DWORD,arg1, REFIID,arg2, LPVOID *,arg3, IUnknown *,arg4) \
 | 
|---|
 | 398 |     ICOM_METHOD2( HRESULT, RegisterApplication,       DWORD,arg1, LPDPAPPLICATIONDESC,arg2 ) \
 | 
|---|
 | 399 |     ICOM_METHOD2( HRESULT, UnregisterApplication,     DWORD,arg1, REFGUID,arg2 ) \
 | 
|---|
 | 400 |     ICOM_METHOD1( HRESULT, WaitForConnectionSettings, DWORD,arg1 )
 | 
|---|
| [4] | 401 | 
 | 
|---|
| [4315] | 402 | #define IDirectPlayLobby3_IMETHODS \
 | 
|---|
 | 403 |     IDirectPlayLobby2_IMETHODS \
 | 
|---|
 | 404 |     IDirectPlayLobby3_METHODS
 | 
|---|
 | 405 | ICOM_DEFINE(IDirectPlayLobby3,IDirectPlayLobby2)
 | 
|---|
 | 406 | #undef ICOM_INTERFACE
 | 
|---|
 | 407 | 
 | 
|---|
 | 408 | #define IDirectPlayLobby_QueryInterface(p,a,b)              ICOM_CALL2(QueryInterface,p,a,b)
 | 
|---|
 | 409 | #define IDirectPlayLobby_AddRef(p)                          ICOM_CALL (AddRef,p)
 | 
|---|
 | 410 | #define IDirectPlayLobby_Release(p)                         ICOM_CALL (Release,p)
 | 
|---|
 | 411 | #define IDirectPlayLobby_Connect(p,a,b,c)                   ICOM_CALL3(Connect,p,a,b,c)
 | 
|---|
 | 412 | #define IDirectPlayLobby_ConnectEx(p,a,b,c,d)               ICOM_CALL4(ConnectEx,p,a,b,c,d)
 | 
|---|
 | 413 | #define IDirectPlayLobby_CreateAddress(p,a,b,c,d,e,f)       ICOM_CALL6(CreateAddress,p,a,b,c,d,e,f)
 | 
|---|
 | 414 | #define IDirectPlayLobby_CreateCompoundAddress(p,a,b,c,d)   ICOM_CALL4(CreateCompoundAddress,p,a,b,c,d)
 | 
|---|
 | 415 | #define IDirectPlayLobby_EnumAddress(p,a,b,c,d)             ICOM_CALL4(EnumAddress,p,a,b,c,d)
 | 
|---|
 | 416 | #define IDirectPlayLobby_EnumAddressTypes(p,a,b,c,d)        ICOM_CALL4(EnumAddressTypes,p,a,b,c,d)
 | 
|---|
 | 417 | #define IDirectPlayLobby_EnumLocalApplications(p,a,b,c)     ICOM_CALL3(EnumLocalApplications,p,a,b,c)
 | 
|---|
 | 418 | #define IDirectPlayLobby_GetConnectionSettings(p,a,b,c)     ICOM_CALL3(GetConnectionSettings,p,a,b,c)
 | 
|---|
 | 419 | #define IDirectPlayLobby_ReceiveLobbyMessage(p,a,b,c,d,e)   ICOM_CALL5(ReceiveLobbyMessage,p,a,b,c,d,e)
 | 
|---|
 | 420 | #define IDirectPlayLobby_RegisterApplication(p,a,b)         ICOM_CALL2(RegisterApplication,p,a,b)
 | 
|---|
 | 421 | #define IDirectPlayLobby_RunApplication(p,a,b,c,d)          ICOM_CALL4(RunApplication,p,a,b,c,d)
 | 
|---|
 | 422 | #define IDirectPlayLobby_SendLobbyMessage(p,a,b,c,d)        ICOM_CALL4(SendLobbyMessage,p,a,b,c,d)
 | 
|---|
 | 423 | #define IDirectPlayLobby_SetConnectionSettings(p,a,b,c)     ICOM_CALL3(SetConnectionSettings,p,a,b,c)
 | 
|---|
 | 424 | #define IDirectPlayLobby_SetLobbyMessageEvent(p,a,b,c)      ICOM_CALL3(SetLobbyMessageEvent,p,a,b,c)
 | 
|---|
 | 425 | #define IDirectPlayLobby_UnregisterApplication(p,a,b)       ICOM_CALL2(UnregisterApplication,p,a,b)
 | 
|---|
 | 426 | #define IDirectPlayLobby_WaitForConnectionSettings(p,a)     ICOM_CALL1(WaitForConnectionSettings,p,a)
 | 
|---|
 | 427 | 
 | 
|---|
 | 428 | /* Used for WaitForConnectionSettings */
 | 
|---|
 | 429 | #define DPLWAIT_CANCEL                  0x00000001
 | 
|---|
 | 430 | 
 | 
|---|
| [945] | 431 | #ifdef __cplusplus
 | 
|---|
 | 432 | } /* extern "C" */
 | 
|---|
 | 433 | #endif /* defined(__cplusplus) */
 | 
|---|
| [4] | 434 | 
 | 
|---|
 | 435 | #endif /* __WINE_DPLOBBY_H */
 | 
|---|