Changeset 945 for trunk/include/win/dplay.h
- Timestamp:
- Sep 15, 1999, 10:14:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/dplay.h
r4 r945 1 /* $Id: dplay.h,v 1.1 1999-05-24 20:19:11 ktk Exp $ */2 3 1 #ifndef __WINE_DPLAY_H 4 2 #define __WINE_DPLAY_H 5 3 6 4 #include "wine/obj_base.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif /* defined(__cplusplus) */ 7 9 8 10 #include "pshpack1.h" … … 129 131 { 130 132 DWORD dwSize; /* Size of structure in bytes */ 131 DWORD dwFlags; 132 DWORD dwMaxBufferSize; 133 DWORD dwFlags; 134 DWORD dwMaxBufferSize; 133 135 DWORD dwMaxQueueSize; /* Obsolete. */ 134 136 DWORD dwMaxPlayers; /* Maximum players/groups (local + remote) */ 135 137 DWORD dwHundredBaud; /* Bandwidth in 100 bits per second units; 136 * i.e. 24 is 2400, 96 is 9600, etc. 138 * i.e. 24 is 2400, 96 is 9600, etc. 137 139 */ 138 140 DWORD dwLatency; /* Estimated latency; 0 = unknown */ … … 147 149 typedef struct tagDPNAME 148 150 { 149 DWORD dwSize; 151 DWORD dwSize; 150 152 DWORD dwFlags; /* Not used must be 0 */ 151 153 152 154 union /*playerShortName */ /* Player's Handle? */ 153 { 154 LPWSTR lpszShortName; 155 LPSTR lpszShortNameA; 155 { 156 LPWSTR lpszShortName; 157 LPSTR lpszShortNameA; 156 158 }psn; 157 159 158 160 union /*playerLongName */ /* Player's formal/real name */ 159 { 160 LPWSTR lpszLongName; 161 LPSTR lpszLongNameA; 161 { 162 LPWSTR lpszLongName; 163 LPSTR lpszLongNameA; 162 164 }pln; 163 165 … … 191 193 typedef struct tagDPSESSIONDESC2 192 194 { 193 DWORD dwSize; 194 DWORD dwFlags; 195 GUID guidInstance; 195 DWORD dwSize; 196 DWORD dwFlags; 197 GUID guidInstance; 196 198 GUID guidApplication; /* GUID of the DP application, GUID_NULL if 197 199 * all applications! */ 198 199 DWORD dwMaxPlayers; 200 201 DWORD dwMaxPlayers; 200 202 DWORD dwCurrentPlayers; /* (read only value) */ 201 203 202 204 union /* Session name */ 203 { 204 LPWSTR lpszSessionName; 205 LPSTR lpszSessionNameA; 205 { 206 LPWSTR lpszSessionName; 207 LPSTR lpszSessionNameA; 206 208 }sess; 207 209 208 210 union /* Optional password */ 209 { 210 LPWSTR lpszPassword; 211 LPSTR lpszPasswordA; 211 { 212 LPWSTR lpszPassword; 213 LPSTR lpszPasswordA; 212 214 }pass; 213 215 214 DWORD dwReserved1; 216 DWORD dwReserved1; 215 217 DWORD dwReserved2; 216 218 217 DWORD dwUser1; /* For use by the application */ 219 DWORD dwUser1; /* For use by the application */ 218 220 DWORD dwUser2; 219 221 DWORD dwUser3; … … 240 242 typedef struct tagDPLCONNECTION 241 243 { 242 DWORD dwSize; 243 DWORD dwFlags; 244 LPDPSESSIONDESC2 lpSessionDesc; /* Ptr to session desc to use for connect */ 244 DWORD dwSize; 245 DWORD dwFlags; 246 LPDPSESSIONDESC2 lpSessionDesc; /* Ptr to session desc to use for connect */ 245 247 LPDPNAME lpPlayerName; /* Ptr to player name structure */ 246 GUID guidSP; /* GUID of Service Provider to use */ 248 GUID guidSP; /* GUID of Service Provider to use */ 247 249 LPVOID lpAddress; /* Ptr to Address of Service Provider to use */ 248 250 DWORD dwAddressSize; /* Size of address data */ … … 320 322 LPSTR lpSPName, /* ptr to str w/ driver description */ 321 323 DWORD dwMajorVersion, /* Major # of driver spec in lpguidSP */ 322 DWORD dwMinorVersion, /* Minor # of driver spec in lpguidSP */ 324 DWORD dwMinorVersion, /* Minor # of driver spec in lpguidSP */ 323 325 LPVOID lpContext); /* User given */ 324 326 … … 365 367 LPVOID lpContext ); 366 368 369 #include "poppack.h" 367 370 368 371 /***************************************************************************** … … 373 376 ICOM_METHOD2(HRESULT,AddPlayerToGroup, DPID,idGroup, DPID,idPlayer) \ 374 377 ICOM_METHOD (HRESULT,Close) \ 375 ICOM_METHOD4(HRESULT,CreatePlayer, LPDPID,lpidPlayer, LPSTR,lpPlayerName, LPSTR, , LPHANDLE,) \376 ICOM_METHOD3(HRESULT,CreateGroup, LPDPID,lpidGroup, LPSTR,lpGroupName, LPSTR, ) \378 ICOM_METHOD4(HRESULT,CreatePlayer, LPDPID,lpidPlayer, LPSTR,lpPlayerName, LPSTR,arg3, LPHANDLE,arg4) \ 379 ICOM_METHOD3(HRESULT,CreateGroup, LPDPID,lpidGroup, LPSTR,lpGroupName, LPSTR,arg3) \ 377 380 ICOM_METHOD2(HRESULT,DeletePlayerFromGroup, DPID,idGroup, DPID,idPlayer) \ 378 381 ICOM_METHOD1(HRESULT,DestroyPlayer, DPID,idPlayer) \ 379 382 ICOM_METHOD1(HRESULT,DestroyGroup, DPID,idGroup) \ 380 ICOM_METHOD1(HRESULT,EnableNewPlayers, BOOL, ) \383 ICOM_METHOD1(HRESULT,EnableNewPlayers, BOOL,arg1) \ 381 384 ICOM_METHOD4(HRESULT,EnumGroupPlayers, DPID,idGroup, LPDPENUMPLAYERSCALLBACK,lpEnumPlayersCallback, LPVOID,lpContext, DWORD,dwFlags) \ 382 ICOM_METHOD4(HRESULT,EnumGroups, DWORD, , LPDPENUMPLAYERSCALLBACK,lpEnumPlayersCallback, LPVOID,lpContext, DWORD,dwFlags) \383 ICOM_METHOD4(HRESULT,EnumPlayers, DWORD, , LPDPENUMPLAYERSCALLBACK,lpEnumPlayersCallback, LPVOID,lpContext, DWORD,dwFlags) \385 ICOM_METHOD4(HRESULT,EnumGroups, DWORD,arg1, LPDPENUMPLAYERSCALLBACK,lpEnumPlayersCallback, LPVOID,lpContext, DWORD,dwFlags) \ 386 ICOM_METHOD4(HRESULT,EnumPlayers, DWORD,arg1, LPDPENUMPLAYERSCALLBACK,lpEnumPlayersCallback, LPVOID,lpContext, DWORD,dwFlags) \ 384 387 ICOM_METHOD5(HRESULT,EnumSessions, LPDPSESSIONDESC,lpsd, DWORD,dwTimeout, LPDPENUMSESSIONSCALLBACK,lpEnumSessionsCallback, LPVOID,lpContext, DWORD,dwFlags) \ 385 388 ICOM_METHOD1(HRESULT,GetCaps, LPDPCAPS,lpDPCaps) \ 386 389 ICOM_METHOD2(HRESULT,GetMessageCount, DPID,idPlayer, LPDWORD,lpdwCount) \ 387 390 ICOM_METHOD2(HRESULT,GetPlayerCaps, DPID,idPlayer, LPDPCAPS,lpPlayerCaps) \ 388 ICOM_METHOD5(HRESULT,GetPlayerName, DPID,idPlayer, LPSTR, , LPDWORD,, LPSTR,, LPDWORD,) \391 ICOM_METHOD5(HRESULT,GetPlayerName, DPID,idPlayer, LPSTR,arg2, LPDWORD,arg3, LPSTR,arg4, LPDWORD,arg5) \ 389 392 ICOM_METHOD1(HRESULT,Initialize, LPGUID,lpGUID) \ 390 393 ICOM_METHOD1(HRESULT,Open, LPDPSESSIONDESC,lpsd) \ 391 394 ICOM_METHOD5(HRESULT,Receive, LPDPID,lpidFrom, LPDPID,lpidTo, DWORD,dwFlags, LPVOID,lpData, LPDWORD,lpdwDataSize) \ 392 ICOM_METHOD1(HRESULT,SaveSession, LPSTR, ) \395 ICOM_METHOD1(HRESULT,SaveSession, LPSTR,arg1) \ 393 396 ICOM_METHOD5(HRESULT,Send, DPID,idFrom, DPID,idTo, DWORD,dwFlags, LPVOID,lpData, DWORD,dwDataSize) \ 394 ICOM_METHOD3(HRESULT,SetPlayerName, DPID,idPlayer, LPSTR,lpPlayerName, LPSTR, )397 ICOM_METHOD3(HRESULT,SetPlayerName, DPID,idPlayer, LPSTR,lpPlayerName, LPSTR,arg3) 395 398 #define IDirectPlay_IMETHODS \ 396 399 IUnknown_IMETHODS \ … … 587 590 #endif 588 591 589 590 #include "poppack.h" 592 #ifdef __cplusplus 593 } /* extern "C" */ 594 #endif /* defined(__cplusplus) */ 591 595 592 596 #endif /* __WINE_DPLAY_H */
Note:
See TracChangeset
for help on using the changeset viewer.