38DEFINE_GUID(CLSID_DirectPlay,0xd1eb6d20, 0x8923, 0x11d0, 0x9d, 0x97, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
40DEFINE_GUID(IID_IDirectPlay, 0x5454e9a0, 0xdb65, 0x11ce, 0x92, 0x1c, 0x00, 0xaa, 0x00, 0x6c, 0x49, 0x72);
43DEFINE_GUID(IID_IDirectPlay2, 0x2b74f7c0, 0x9154, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
46DEFINE_GUID(IID_IDirectPlay2A,0x9d460580, 0xa822, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
49DEFINE_GUID(IID_IDirectPlay3, 0x133efe40, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
52DEFINE_GUID(IID_IDirectPlay3A,0x133efe41, 0x32dc, 0x11d0, 0x9c, 0xfb, 0x0, 0xa0, 0xc9, 0xa, 0x43, 0xcb);
55DEFINE_GUID(IID_IDirectPlay4, 0xab1c530, 0x4745, 0x11d1, 0xa7, 0xa1, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
58DEFINE_GUID(IID_IDirectPlay4A,0xab1c531, 0x4745, 0x11d1, 0xa7, 0xa1, 0x0, 0x0, 0xf8, 0x3, 0xab, 0xfc);
68DEFINE_GUID(DPSPGUID_IPX, 0x685bc400, 0x9d2c, 0x11cf, 0xa9, 0xcd, 0x0, 0xaa, 0x0, 0x68, 0x86, 0xe3);
71DEFINE_GUID(DPSPGUID_TCPIP, 0x36E95EE0, 0x8577, 0x11cf, 0x96, 0xc, 0x0, 0x80, 0xc7, 0x53, 0x4e, 0x82);
74DEFINE_GUID(DPSPGUID_SERIAL, 0xf1d6860, 0x88d9, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
77DEFINE_GUID(DPSPGUID_MODEM, 0x44eaa760, 0xcb68, 0x11cf, 0x9c, 0x4e, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
86#define MAKE_DPHRESULT( code ) MAKE_HRESULT( 1, _FACDP, code )
89#define DPERR_ALREADYINITIALIZED MAKE_DPHRESULT( 5 )
90#define DPERR_ACCESSDENIED MAKE_DPHRESULT( 10 )
91#define DPERR_ACTIVEPLAYERS MAKE_DPHRESULT( 20 )
92#define DPERR_BUFFERTOOSMALL MAKE_DPHRESULT( 30 )
93#define DPERR_CANTADDPLAYER MAKE_DPHRESULT( 40 )
94#define DPERR_CANTCREATEGROUP MAKE_DPHRESULT( 50 )
95#define DPERR_CANTCREATEPLAYER MAKE_DPHRESULT( 60 )
96#define DPERR_CANTCREATESESSION MAKE_DPHRESULT( 70 )
97#define DPERR_CAPSNOTAVAILABLEYET MAKE_DPHRESULT( 80 )
98#define DPERR_EXCEPTION MAKE_DPHRESULT( 90 )
99#define DPERR_GENERIC E_FAIL
100#define DPERR_INVALIDFLAGS MAKE_DPHRESULT( 120 )
101#define DPERR_INVALIDOBJECT MAKE_DPHRESULT( 130 )
102#define DPERR_INVALIDPARAM E_INVALIDARG
103#define DPERR_INVALIDPARAMS DPERR_INVALIDPARAM
104#define DPERR_INVALIDPLAYER MAKE_DPHRESULT( 150 )
105#define DPERR_INVALIDGROUP MAKE_DPHRESULT( 155 )
106#define DPERR_NOCAPS MAKE_DPHRESULT( 160 )
107#define DPERR_NOCONNECTION MAKE_DPHRESULT( 170 )
108#define DPERR_NOMEMORY E_OUTOFMEMORY
109#define DPERR_OUTOFMEMORY DPERR_NOMEMORY
110#define DPERR_NOMESSAGES MAKE_DPHRESULT( 190 )
111#define DPERR_NONAMESERVERFOUND MAKE_DPHRESULT( 200 )
112#define DPERR_NOPLAYERS MAKE_DPHRESULT( 210 )
113#define DPERR_NOSESSIONS MAKE_DPHRESULT( 220 )
114#define DPERR_PENDING E_PENDING
115#define DPERR_SENDTOOBIG MAKE_DPHRESULT( 230 )
116#define DPERR_TIMEOUT MAKE_DPHRESULT( 240 )
117#define DPERR_UNAVAILABLE MAKE_DPHRESULT( 250 )
118#define DPERR_UNSUPPORTED E_NOTIMPL
119#define DPERR_BUSY MAKE_DPHRESULT( 270 )
120#define DPERR_USERCANCEL MAKE_DPHRESULT( 280 )
121#define DPERR_NOINTERFACE E_NOINTERFACE
122#define DPERR_CANNOTCREATESERVER MAKE_DPHRESULT( 290 )
123#define DPERR_PLAYERLOST MAKE_DPHRESULT( 300 )
124#define DPERR_SESSIONLOST MAKE_DPHRESULT( 310 )
125#define DPERR_UNINITIALIZED MAKE_DPHRESULT( 320 )
126#define DPERR_NONEWPLAYERS MAKE_DPHRESULT( 330 )
127#define DPERR_INVALIDPASSWORD MAKE_DPHRESULT( 340 )
128#define DPERR_CONNECTING MAKE_DPHRESULT( 350 )
129#define DPERR_CONNECTIONLOST MAKE_DPHRESULT( 360 )
130#define DPERR_UNKNOWNMESSAGE MAKE_DPHRESULT( 370 )
131#define DPERR_CANCELFAILED MAKE_DPHRESULT( 380 )
132#define DPERR_INVALIDPRIORITY MAKE_DPHRESULT( 390 )
133#define DPERR_NOTHANDLED MAKE_DPHRESULT( 400 )
134#define DPERR_CANCELLED MAKE_DPHRESULT( 410 )
135#define DPERR_ABORTED MAKE_DPHRESULT( 420 )
136#define DPERR_BUFFERTOOLARGE MAKE_DPHRESULT( 1000 )
137#define DPERR_CANTCREATEPROCESS MAKE_DPHRESULT( 1010 )
138#define DPERR_APPNOTSTARTED MAKE_DPHRESULT( 1020 )
139#define DPERR_INVALIDINTERFACE MAKE_DPHRESULT( 1030 )
140#define DPERR_NOSERVICEPROVIDER MAKE_DPHRESULT( 1040 )
141#define DPERR_UNKNOWNAPPLICATION MAKE_DPHRESULT( 1050 )
142#define DPERR_NOTLOBBIED MAKE_DPHRESULT( 1070 )
143#define DPERR_SERVICEPROVIDERLOADED MAKE_DPHRESULT( 1080 )
144#define DPERR_ALREADYREGISTERED MAKE_DPHRESULT( 1090 )
145#define DPERR_NOTREGISTERED MAKE_DPHRESULT( 1100 )
146#define DPERR_AUTHENTICATIONFAILED MAKE_DPHRESULT( 2000 )
147#define DPERR_CANTLOADSSPI MAKE_DPHRESULT( 2010 )
148#define DPERR_ENCRYPTIONFAILED MAKE_DPHRESULT( 2020 )
149#define DPERR_SIGNFAILED MAKE_DPHRESULT( 2030 )
150#define DPERR_CANTLOADSECURITYPACKAGE MAKE_DPHRESULT( 2040 )
151#define DPERR_ENCRYPTIONNOTSUPPORTED MAKE_DPHRESULT( 2050 )
152#define DPERR_CANTLOADCAPI MAKE_DPHRESULT( 2060 )
153#define DPERR_NOTLOGGEDIN MAKE_DPHRESULT( 2070 )
154#define DPERR_LOGONDENIED MAKE_DPHRESULT( 2080 )
162#define DPID_ALLPLAYERS 0
163#define DPID_SERVERPLAYER 1
164#define DPID_UNKNOWN 0xFFFFFFFF
205#define DPLONGNAMELEN 52
206#define DPSHORTNAMELEN 20
207#define DPSESSIONNAMELEN 32
208#define DPPASSWORDLEN 16
209#define DPUSERRESERVED 16
263#define DPOPEN_JOIN 0x00000001
264#define DPOPEN_CREATE 0x00000002
265#define DPOPEN_RETURNSTATUS DPENUMSESSIONS_RETURNSTATUS
267#define DPSESSION_NEWPLAYERSDISABLED 0x00000001
268#define DPSESSION_MIGRATEHOST 0x00000004
269#define DPSESSION_NOMESSAGEID 0x00000008
270#define DPSESSION_JOINDISABLED 0x00000020
271#define DPSESSION_KEEPALIVE 0x00000040
272#define DPSESSION_NODATAMESSAGES 0x00000080
273#define DPSESSION_SECURESERVER 0x00000100
274#define DPSESSION_PRIVATE 0x00000200
275#define DPSESSION_PASSWORDREQUIRED 0x00000400
276#define DPSESSION_MULTICASTSERVER 0x00000800
277#define DPSESSION_CLIENTSERVER 0x00001000
278#define DPSESSION_DIRECTPLAYPROTOCOL 0x00002000
279#define DPSESSION_NOPRESERVEORDER 0x00004000
280#define DPSESSION_OPTIMIZELATENCY 0x00008000
294#define DPLCONNECTION_CREATESESSION DPOPEN_CREATE
295#define DPLCONNECTION_JOINSESSION DPOPEN_JOIN
363 DWORD dwMajorVersion,
364 DWORD dwMinorVersion,
370 DWORD dwMajorVersion,
371 DWORD dwMinorVersion,
374#ifndef __LPCGUID_DEFINED__
375#define __LPCGUID_DEFINED__
384 DWORD dwConnectionSize,
402 LPSTR lpFriendlyName,
420#define DPESC_TIMEDOUT 0x00000001
425#define INTERFACE IDirectPlay
458#if !defined(__cplusplus) || defined(CINTERFACE)
460#define IDirectPlay_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
461#define IDirectPlay_AddRef(p) (p)->lpVtbl->AddRef(p)
462#define IDirectPlay_Release(p) (p)->lpVtbl->Release(p)
464#define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
465#define IDirectPlay_Close(p) (p)->lpVtbl->Close(p)
466#define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->lpVtbl->CreatePlayer(p,a,b,c,d)
467#define IDirectPlay_CreateGroup(p,a,b,c) (p)->lpVtbl->CreateGroup(p,a,b,c)
468#define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
469#define IDirectPlay_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
470#define IDirectPlay_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
471#define IDirectPlay_EnableNewPlayers(p,a) (p)->lpVtbl->EnableNewPlayers(p,a)
472#define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d)
473#define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
474#define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
475#define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
476#define IDirectPlay_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
477#define IDirectPlay_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
478#define IDirectPlay_GetPlayerCaps(p,a,b) (p)->lpVtbl->GetPlayerCaps(p,a,b)
479#define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->lpVtbl->GetPlayerName(p,a,b,c,d,e)
480#define IDirectPlay_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
481#define IDirectPlay_Open(p,a) (p)->lpVtbl->Open(p,a)
482#define IDirectPlay_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
483#define IDirectPlay_SaveSession(p,a) (p)->lpVtbl->SaveSession(p,a)
484#define IDirectPlay_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
485#define IDirectPlay_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
488#define IDirectPlay_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
489#define IDirectPlay_AddRef(p) (p)->AddRef()
490#define IDirectPlay_Release(p) (p)->Release()
492#define IDirectPlay_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
493#define IDirectPlay_Close(p) (p)->Close()
494#define IDirectPlay_CreatePlayer(p,a,b,c,d) (p)->CreatePlayer(a,b,c,d)
495#define IDirectPlay_CreateGroup(p,a,b,c) (p)->CreateGroup(a,b,c)
496#define IDirectPlay_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
497#define IDirectPlay_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
498#define IDirectPlay_DestroyGroup(p,a) (p)->DestroyGroup(a)
499#define IDirectPlay_EnableNewPlayers(p,a) (p)->EnableNewPlayers(a)
500#define IDirectPlay_EnumGroupPlayers(p,a,b,c,d) (p)->EnumGroupPlayers(a,b,c,d)
501#define IDirectPlay_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
502#define IDirectPlay_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
503#define IDirectPlay_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
504#define IDirectPlay_GetCaps(p,a) (p)->GetCaps(a)
505#define IDirectPlay_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
506#define IDirectPlay_GetPlayerCaps(p,a,b) (p)->GetPlayerCaps(a,b)
507#define IDirectPlay_GetPlayerName(p,a,b,c,d,e) (p)->GetPlayerName(a,b,c,d,e)
508#define IDirectPlay_Initialize(p,a) (p)->Initialize(a)
509#define IDirectPlay_Open(p,a) (p)->Open(a)
510#define IDirectPlay_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
511#define IDirectPlay_SaveSession(p,a) (p)->SaveSession(a)
512#define IDirectPlay_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
513#define IDirectPlay_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
520#define INTERFACE IDirectPlay2
560#if !defined(__cplusplus) || defined(CINTERFACE)
562#define IDirectPlay2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
563#define IDirectPlay2_AddRef(p) (p)->lpVtbl->AddRef(p)
564#define IDirectPlay2_Release(p) (p)->lpVtbl->Release(p)
566#define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
567#define IDirectPlay2_Close(p) (p)->lpVtbl->Close(p)
568#define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
569#define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
570#define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
571#define IDirectPlay2_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
572#define IDirectPlay2_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
573#define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
574#define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
575#define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
576#define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
577#define IDirectPlay2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
578#define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
579#define IDirectPlay2_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
580#define IDirectPlay2_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
581#define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
582#define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
583#define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
584#define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
585#define IDirectPlay2_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
586#define IDirectPlay2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
587#define IDirectPlay2_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
588#define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
589#define IDirectPlay2_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
590#define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
591#define IDirectPlay2_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
592#define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
593#define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
594#define IDirectPlay2_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
597#define IDirectPlay2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
598#define IDirectPlay2_AddRef(p) (p)->AddRef()
599#define IDirectPlay2_Release(p) (p)->Release()
601#define IDirectPlay2_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
602#define IDirectPlay2_Close(p) (p)->Close()
603#define IDirectPlay2_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
604#define IDirectPlay2_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
605#define IDirectPlay2_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
606#define IDirectPlay2_DestroyGroup(p,a) (p)->DestroyGroup(a)
607#define IDirectPlay2_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
608#define IDirectPlay2_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
609#define IDirectPlay2_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
610#define IDirectPlay2_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
611#define IDirectPlay2_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
612#define IDirectPlay2_GetCaps(p,a,b) (p)->GetCaps(a,b)
613#define IDirectPlay2_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
614#define IDirectPlay2_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
615#define IDirectPlay2_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
616#define IDirectPlay2_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
617#define IDirectPlay2_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
618#define IDirectPlay2_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
619#define IDirectPlay2_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
620#define IDirectPlay2_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
621#define IDirectPlay2_Initialize(p,a) (p)->Initialize(a)
622#define IDirectPlay2_Open(p,a,b) (p)->Open(a,b)
623#define IDirectPlay2_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
624#define IDirectPlay2_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
625#define IDirectPlay2_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
626#define IDirectPlay2_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
627#define IDirectPlay2_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
628#define IDirectPlay2_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
629#define IDirectPlay2_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
636#define INTERFACE IDirectPlay3
692#if !defined(__cplusplus) || defined(CINTERFACE)
694#define IDirectPlay3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
695#define IDirectPlay3_AddRef(p) (p)->lpVtbl->AddRef(p)
696#define IDirectPlay3_Release(p) (p)->lpVtbl->Release(p)
698#define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
699#define IDirectPlay3_Close(p) (p)->lpVtbl->Close(p)
700#define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
701#define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
702#define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
703#define IDirectPlay3_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
704#define IDirectPlay3_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
705#define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
706#define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
707#define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
708#define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
709#define IDirectPlay3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
710#define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
711#define IDirectPlay3_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
712#define IDirectPlay3_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
713#define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
714#define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
715#define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
716#define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
717#define IDirectPlay3_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
718#define IDirectPlay3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
719#define IDirectPlay3_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
720#define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
721#define IDirectPlay3_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
722#define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
723#define IDirectPlay3_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
724#define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
725#define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
726#define IDirectPlay3_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
728#define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
729#define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
730#define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
731#define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
732#define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
733#define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
734#define IDirectPlay3_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
735#define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
736#define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
737#define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
738#define IDirectPlay3_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
739#define IDirectPlay3_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
740#define IDirectPlay3_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
741#define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
742#define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
745#define IDirectPlay3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
746#define IDirectPlay3_AddRef(p) (p)->AddRef()
747#define IDirectPlay3_Release(p) (p)->Release()
749#define IDirectPlay3_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
750#define IDirectPlay3_Close(p) (p)->Close()
751#define IDirectPlay3_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
752#define IDirectPlay3_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
753#define IDirectPlay3_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
754#define IDirectPlay3_DestroyGroup(p,a) (p)->DestroyGroup(a)
755#define IDirectPlay3_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
756#define IDirectPlay3_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
757#define IDirectPlay3_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
758#define IDirectPlay3_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
759#define IDirectPlay3_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
760#define IDirectPlay3_GetCaps(p,a,b) (p)->GetCaps(a,b)
761#define IDirectPlay3_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
762#define IDirectPlay3_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
763#define IDirectPlay3_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
764#define IDirectPlay3_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
765#define IDirectPlay3_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
766#define IDirectPlay3_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
767#define IDirectPlay3_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
768#define IDirectPlay3_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
769#define IDirectPlay3_Initialize(p,a) (p)->Initialize(a)
770#define IDirectPlay3_Open(p,a,b) (p)->Open(a,b)
771#define IDirectPlay3_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
772#define IDirectPlay3_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
773#define IDirectPlay3_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
774#define IDirectPlay3_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
775#define IDirectPlay3_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
776#define IDirectPlay3_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
777#define IDirectPlay3_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
779#define IDirectPlay3_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b)
780#define IDirectPlay3_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f)
781#define IDirectPlay3_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b)
782#define IDirectPlay3_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d)
783#define IDirectPlay3_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e)
784#define IDirectPlay3_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d)
785#define IDirectPlay3_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b)
786#define IDirectPlay3_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d)
787#define IDirectPlay3_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d)
788#define IDirectPlay3_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c)
789#define IDirectPlay3_StartSession(p,a,b) (p)->StartSession(a,b)
790#define IDirectPlay3_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b)
791#define IDirectPlay3_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b)
792#define IDirectPlay3_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d)
793#define IDirectPlay3_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b)
799#define INTERFACE IDirectPlay4
862#if !defined(__cplusplus) || defined(CINTERFACE)
864#define IDirectPlayX_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
865#define IDirectPlayX_AddRef(p) (p)->lpVtbl->AddRef(p)
866#define IDirectPlayX_Release(p) (p)->lpVtbl->Release(p)
868#define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->lpVtbl->AddPlayerToGroup(p,a,b)
869#define IDirectPlayX_Close(p) (p)->lpVtbl->Close(p)
870#define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->lpVtbl->CreateGroup(p,a,b,c,d,e)
871#define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->lpVtbl->CreatePlayer(p,a,b,c,d,e,f)
872#define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->lpVtbl->DeletePlayerFromGroup(p,a,b)
873#define IDirectPlayX_DestroyGroup(p,a) (p)->lpVtbl->DestroyGroup(p,a)
874#define IDirectPlayX_DestroyPlayer(p,a) (p)->lpVtbl->DestroyPlayer(p,a)
875#define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupPlayers(p,a,b,c,d,e)
876#define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->lpVtbl->EnumGroups(p,a,b,c,d)
877#define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->lpVtbl->EnumPlayers(p,a,b,c,d)
878#define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->lpVtbl->EnumSessions(p,a,b,c,d,e)
879#define IDirectPlayX_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
880#define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->lpVtbl->GetGroupData(p,a,b,c,d)
881#define IDirectPlayX_GetGroupName(p,a,b,c) (p)->lpVtbl->GetGroupName(p,a,b,c)
882#define IDirectPlayX_GetMessageCount(p,a,b) (p)->lpVtbl->GetMessageCount(p,a,b)
883#define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->lpVtbl->GetPlayerAddress(p,a,b,c)
884#define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->lpVtbl->GetPlayerCaps(p,a,b,c)
885#define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->lpVtbl->GetPlayerData(p,a,b,c,d)
886#define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->lpVtbl->GetPlayerName(p,a,b,c)
887#define IDirectPlayX_GetSessionDesc(p,a,b) (p)->lpVtbl->GetSessionDesc(p,a,b)
888#define IDirectPlayX_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
889#define IDirectPlayX_Open(p,a,b) (p)->lpVtbl->Open(p,a,b)
890#define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->lpVtbl->Receive(p,a,b,c,d,e)
891#define IDirectPlayX_Send(p,a,b,c,d,e) (p)->lpVtbl->Send(p,a,b,c,d,e)
892#define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->lpVtbl->SetGroupData(p,a,b,c,d)
893#define IDirectPlayX_SetGroupName(p,a,b,c) (p)->lpVtbl->SetGroupName(p,a,b,c)
894#define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->lpVtbl->SetPlayerData(p,a,b,c,d)
895#define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->lpVtbl->SetPlayerName(p,a,b,c)
896#define IDirectPlayX_SetSessionDesc(p,a,b) (p)->lpVtbl->SetSessionDesc(p,a,b)
898#define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->lpVtbl->AddGroupToGroup(p,a,b)
899#define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->lpVtbl->CreateGroupInGroup(p,a,b,c,d,e,f)
900#define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->lpVtbl->DeleteGroupFromGroup(p,a,b)
901#define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->lpVtbl->EnumConnections(p,a,b,c,d)
902#define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->lpVtbl->EnumGroupsInGroup(p,a,b,c,d,e)
903#define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->lpVtbl->GetGroupConnectionSettings(p,a,b,c,d)
904#define IDirectPlayX_InitializeConnection(p,a,b) (p)->lpVtbl->InitializeConnection(p,a,b)
905#define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->lpVtbl->SecureOpen(p,a,b,c,d)
906#define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->lpVtbl->SendChatMessage(p,a,b,c,d)
907#define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->lpVtbl->SetGroupConnectionSettings(p,a,b,c)
908#define IDirectPlayX_StartSession(p,a,b) (p)->lpVtbl->StartSession(p,a,b)
909#define IDirectPlayX_GetGroupFlags(p,a,b) (p)->lpVtbl->GetGroupFlags(p,a,b)
910#define IDirectPlayX_GetGroupParent(p,a,b) (p)->lpVtbl->GetGroupParent(p,a,b)
911#define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->lpVtbl->GetPlayerAccount(p,a,b,c,d)
912#define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->lpVtbl->GetPlayerFlags(p,a,b)
914#define IDirectPlayX_GetGroupOwner(p,a,b) (p)->lpVtbl->GetGroupOwner(p,a,b)
915#define IDirectPlayX_SetGroupOwner(p,a,b) (p)->lpVtbl->SetGroupOwner(p,a,b)
916#define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->SendEx(p,a,b,c,d,e,f,g,h,i)
917#define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->lpVtbl->GetMessageQueue(p,a,b,c,d,e)
918#define IDirectPlayX_CancelMessage(p,a,b) (p)->lpVtbl->CancelMessage(p,a,b)
919#define IDirectPlayX_CancelPriority(p,a,b,c) (p)->lpVtbl->CancelPriority(p,a,b,c)
922#define IDirectPlayX_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
923#define IDirectPlayX_AddRef(p) (p)->AddRef()
924#define IDirectPlayX_Release(p) (p)->Release()
926#define IDirectPlayX_AddPlayerToGroup(p,a,b) (p)->AddPlayerToGroup(a,b)
927#define IDirectPlayX_Close(p) (p)->Close()
928#define IDirectPlayX_CreateGroup(p,a,b,c,d,e) (p)->CreateGroup(a,b,c,d,e)
929#define IDirectPlayX_CreatePlayer(p,a,b,c,d,e,f) (p)->CreatePlayer(a,b,c,d,e,f)
930#define IDirectPlayX_DeletePlayerFromGroup(p,a,b) (p)->DeletePlayerFromGroup(a,b)
931#define IDirectPlayX_DestroyGroup(p,a) (p)->DestroyGroup(a)
932#define IDirectPlayX_DestroyPlayer(p,a) (p)->DestroyPlayer(a)
933#define IDirectPlayX_EnumGroupPlayers(p,a,b,c,d,e) (p)->EnumGroupPlayers(a,b,c,d,e)
934#define IDirectPlayX_EnumGroups(p,a,b,c,d) (p)->EnumGroups(a,b,c,d)
935#define IDirectPlayX_EnumPlayers(p,a,b,c,d) (p)->EnumPlayers(a,b,c,d)
936#define IDirectPlayX_EnumSessions(p,a,b,c,d,e) (p)->EnumSessions(a,b,c,d,e)
937#define IDirectPlayX_GetCaps(p,a,b) (p)->GetCaps(a,b)
938#define IDirectPlayX_GetGroupData(p,a,b,c,d) (p)->GetGroupData(a,b,c,d)
939#define IDirectPlayX_GetGroupName(p,a,b,c) (p)->GetGroupName(a,b,c)
940#define IDirectPlayX_GetMessageCount(p,a,b) (p)->GetMessageCount(a,b)
941#define IDirectPlayX_GetPlayerAddress(p,a,b,c) (p)->GetPlayerAddress(a,b,c)
942#define IDirectPlayX_GetPlayerCaps(p,a,b,c) (p)->GetPlayerCaps(a,b,c)
943#define IDirectPlayX_GetPlayerData(p,a,b,c,d) (p)->GetPlayerData(a,b,c,d)
944#define IDirectPlayX_GetPlayerName(p,a,b,c) (p)->GetPlayerName(a,b,c)
945#define IDirectPlayX_GetSessionDesc(p,a,b) (p)->GetSessionDesc(a,b)
946#define IDirectPlayX_Initialize(p,a) (p)->Initialize(a)
947#define IDirectPlayX_Open(p,a,b) (p)->Open(a,b)
948#define IDirectPlayX_Receive(p,a,b,c,d,e) (p)->Receive(a,b,c,d,e)
949#define IDirectPlayX_Send(p,a,b,c,d,e) (p)->Send(a,b,c,d,e)
950#define IDirectPlayX_SetGroupData(p,a,b,c,d) (p)->SetGroupData(a,b,c,d)
951#define IDirectPlayX_SetGroupName(p,a,b,c) (p)->SetGroupName(a,b,c)
952#define IDirectPlayX_SetPlayerData(p,a,b,c,d) (p)->SetPlayerData(a,b,c,d)
953#define IDirectPlayX_SetPlayerName(p,a,b,c) (p)->SetPlayerName(a,b,c)
954#define IDirectPlayX_SetSessionDesc(p,a,b) (p)->SetSessionDesc(a,b)
956#define IDirectPlayX_AddGroupToGroup(p,a,b) (p)->AddGroupToGroup(a,b)
957#define IDirectPlayX_CreateGroupInGroup(p,a,b,c,d,e,f) (p)->CreateGroupInGroup(a,b,c,d,e,f)
958#define IDirectPlayX_DeleteGroupFromGroup(p,a,b) (p)->DeleteGroupFromGroup(a,b)
959#define IDirectPlayX_EnumConnections(p,a,b,c,d) (p)->EnumConnections(a,b,c,d)
960#define IDirectPlayX_EnumGroupsInGroup(p,a,b,c,d,e) (p)->EnumGroupsInGroup(a,b,c,d,e)
961#define IDirectPlayX_GetGroupConnectionSettings(p,a,b,c,d) (p)->GetGroupConnectionSettings(a,b,c,d)
962#define IDirectPlayX_InitializeConnection(p,a,b) (p)->InitializeConnection(a,b)
963#define IDirectPlayX_SecureOpen(p,a,b,c,d) (p)->SecureOpen(a,b,c,d)
964#define IDirectPlayX_SendChatMessage(p,a,b,c,d) (p)->SendChatMessage(a,b,c,d)
965#define IDirectPlayX_SetGroupConnectionSettings(p,a,b,c) (p)->SetGroupConnectionSettings(a,b,c)
966#define IDirectPlayX_StartSession(p,a,b) (p)->StartSession(a,b)
967#define IDirectPlayX_GetGroupFlags(p,a,b) (p)->GetGroupFlags(a,b)
968#define IDirectPlayX_GetGroupParent(p,a,b) (p)->GetGroupParent(a,b)
969#define IDirectPlayX_GetPlayerAccount(p,a,b,c,d) (p)->GetPlayerAccount(a,b,c,d)
970#define IDirectPlayX_GetPlayerFlags(p,a,b) (p)->GetPlayerFlags(a,b)
972#define IDirectPlayX_GetGroupOwner(p,a,b) (p)->GetGroupOwner(a,b)
973#define IDirectPlayX_SetGroupOwner(p,a,b) (p)->SetGroupOwner(a,b)
974#define IDirectPlayX_SendEx(p,a,b,c,d,e,f,g,h,i) (p)->SendEx(a,b,c,d,e,f,g,h,i)
975#define IDirectPlayX_GetMessageQueue(p,a,b,c,d,e) (p)->GetMessageQueue(a,b,c,d,e)
976#define IDirectPlayX_CancelMessage(p,a,b) (p)->CancelMessage(a,b)
977#define IDirectPlayX_CancelPriority(p,a,b,c) (p)->CancelPriority(a,b,c)
982#define DPCONNECTION_DIRECTPLAY 0x00000001
983#define DPCONNECTION_DIRECTPLAYLOBBY 0x00000002
986#define DPENUMPLAYERS_ALL 0x00000000
987#define DPENUMPLAYERS_LOCAL 0x00000008
988#define DPENUMPLAYERS_REMOTE 0x00000010
989#define DPENUMPLAYERS_GROUP 0x00000020
990#define DPENUMPLAYERS_SESSION 0x00000080
991#define DPENUMPLAYERS_SERVERPLAYER 0x00000100
992#define DPENUMPLAYERS_SPECTATOR 0x00000200
993#define DPENUMPLAYERS_OWNER 0x00002000
995#define DPENUMGROUPS_ALL DPENUMPLAYERS_ALL
996#define DPENUMGROUPS_LOCAL DPENUMPLAYERS_LOCAL
997#define DPENUMGROUPS_REMOTE DPENUMPLAYERS_REMOTE
998#define DPENUMGROUPS_SESSION DPENUMPLAYERS_SESSION
999#define DPENUMGROUPS_SHORTCUT 0x00000400
1000#define DPENUMGROUPS_STAGINGAREA 0x00000800
1001#define DPENUMGROUPS_HIDDEN 0x00001000
1005#define DPPLAYER_SERVERPLAYER DPENUMPLAYERS_SERVERPLAYER
1006#define DPPLAYER_SPECTATOR DPENUMPLAYERS_SPECTATOR
1007#define DPPLAYER_LOCAL DPENUMPLAYERS_LOCAL
1008#define DPPLAYER_OWNER DPENUMPLAYERS_OWNER
1011#define DPGROUP_STAGINGAREA DPENUMGROUPS_STAGINGAREA
1012#define DPGROUP_LOCAL DPENUMGROUPS_LOCAL
1013#define DPGROUP_HIDDEN DPENUMGROUPS_HIDDEN
1016#define DPENUMSESSIONS_AVAILABLE 0x00000001
1017#define DPENUMSESSIONS_ALL 0x00000002
1018#define DPENUMSESSIONS_ASYNC 0x00000010
1019#define DPENUMSESSIONS_STOPASYNC 0x00000020
1020#define DPENUMSESSIONS_PASSWORDREQUIRED 0x00000040
1021#define DPENUMSESSIONS_RETURNSTATUS 0x00000080
1024#define DPGETCAPS_GUARANTEED 0x00000001
1027#define DPGET_REMOTE 0x00000000
1028#define DPGET_LOCAL 0x00000001
1031#define DPRECEIVE_ALL 0x00000001
1032#define DPRECEIVE_TOPLAYER 0x00000002
1033#define DPRECEIVE_FROMPLAYER 0x00000004
1034#define DPRECEIVE_PEEK 0x00000008
1037#define DPSEND_NONGUARANTEED 0x00000000
1038#define DPSEND_GUARANTEED 0x00000001
1039#define DPSEND_HIGHPRIORITY 0x00000002
1040#define DPSEND_OPENSTREAM 0x00000008
1041#define DPSEND_CLOSESTREAM 0x00000010
1042#define DPSEND_SIGNED 0x00000020
1043#define DPSEND_ENCRYPTED 0x00000040
1044#define DPSEND_LOBBYSYSTEMMESSAGE 0x00000080
1045#define DPSEND_ASYNC 0x00000200
1046#define DPSEND_NOSENDCOMPLETEMSG 0x00000400
1048#define DPSEND_MAX_PRI 0x0000FFFF
1049#define DPSEND_MAX_PRIORITY DPSEND_MAX_PRI
1056#define DPSET_REMOTE 0x00000000
1057#define DPSET_LOCAL 0x00000001
1058#define DPSET_GUARANTEED 0x00000002
1061#define DPMESSAGEQUEUE_SEND 0x00000001
1062#define DPMESSAGEQUEUE_RECEIVE 0x00000002
1065#define DPCONNECT_RETURNSTATUS (DPENUMSESSIONS_RETURNSTATUS)
1068#define DPCAPS_ISHOST 0x00000002
1069#define DPCAPS_GROUPOPTIMIZED 0x00000008
1070#define DPCAPS_KEEPALIVEOPTIMIZED 0x00000010
1071#define DPCAPS_GUARANTEEDOPTIMIZED 0x00000020
1072#define DPCAPS_GUARANTEEDSUPPORTED 0x00000040
1073#define DPCAPS_SIGNINGSUPPORTED 0x00000080
1074#define DPCAPS_ENCRYPTIONSUPPORTED 0x00000100
1075#define DPPLAYERCAPS_LOCAL 0x00000800
1076#define DPCAPS_ASYNCCANCELSUPPORTED 0x00001000
1077#define DPCAPS_ASYNCCANCELALLSUPPORTED 0x00002000
1078#define DPCAPS_SENDTIMEOUTSUPPORTED 0x00004000
1079#define DPCAPS_SENDPRIORITYSUPPORTED 0x00008000
1080#define DPCAPS_ASYNCSUPPORTED 0x00010000
1085#define DPSYS_CREATEPLAYERORGROUP 0x0003
1088#define DPSYS_DESTROYPLAYERORGROUP 0x0005
1091#define DPSYS_ADDPLAYERTOGROUP 0x0007
1094#define DPSYS_DELETEPLAYERFROMGROUP 0x0021
1097#define DPSYS_SESSIONLOST 0x0031
1100#define DPSYS_HOST 0x0101
1103#define DPSYS_SETPLAYERORGROUPDATA 0x0102
1106#define DPSYS_SETPLAYERORGROUPNAME 0x0103
1109#define DPSYS_SETSESSIONDESC 0x0104
1112#define DPSYS_ADDGROUPTOGROUP 0x0105
1115#define DPSYS_DELETEGROUPFROMGROUP 0x0106
1118#define DPSYS_SECUREMESSAGE 0x0107
1121#define DPSYS_STARTSESSION 0x0108
1124#define DPSYS_CHAT 0x0109
1127#define DPSYS_SETGROUPOWNER 0x010A
1130#define DPSYS_SENDCOMPLETE 0x010d
1134#define DPPLAYERTYPE_GROUP 0x00000000
1135#define DPPLAYERTYPE_PLAYER 0x00000001
#define DECLARE_INTERFACE_(i, b)
NET_API_STATUS EnumSessions(_In_ PWSTR pszComputerName, _In_ BOOL bList)
struct tagDPMSG_CHAT DPMSG_CHAT
const DPCREDENTIALS * LPCDPCREDENTIALS
struct tagDPMSG_DESTROYPLAYERORGROUP * LPDPMSG_DESTROYPLAYERORGROUP
struct tagDPMSG_ADDPLAYERTOGROUP * LPDPMSG_ADDPLAYERTOGROUP
struct tagDPMSG_GENERIC * LPDPMSG_GENERIC
struct SGBUFFER * PSGBUFFER
struct tagDPLCONNECTION * LPDPLCONNECTION
struct IDirectPlay3 * LPDIRECTPLAY3A
HRESULT WINAPI DirectPlayCreate(LPGUID lpGUID, LPDIRECTPLAY *lplpDP, IUnknown *pUnk)
struct SGBUFFER * LPSGBUFFER
struct tagDPMSG_ADDGROUPTOGROUP * LPDPMSG_DELETEGROUPFROMGROUP
struct tagDPMSG_SECUREMESSAGE * LPDPMSG_SECUREMESSAGE
struct tagDPMSG_SETSESSIONDESC * LPDPMSG_SETSESSIONDESC
struct tagDPMSG_SETPLAYERORGROUPDATA * LPDPMSG_SETPLAYERORGROUPDATA
struct IDirectPlay * LPDIRECTPLAY
struct tagDPSECURITYDESC * LPDPSECURITYDESC
BOOL(CALLBACK * LPDPENUMSESSIONSCALLBACK)(LPDPSESSIONDESC lpDPSessionDesc, LPVOID lpContext, LPDWORD lpdwTimeOut, DWORD dwFlags)
struct DPMSG_SENDCOMPLETE * LPDPMSG_SENDCOMPLETE
struct tagDPMSG_DESTROYPLAYERORGROUP DPMSG_DESTROYPLAYERORGROUP
struct tagDPMSG_SETPLAYERORGROUPNAME * LPDPMSG_SETPLAYERORGROUPNAME
struct tagDPNAME * LPDPNAME
struct tagDPMSG_SETGROUPOWNER DPMSG_SETGROUPOWNER
struct tagDPMSG_STARTSESSION DPMSG_STARTSESSION
struct tagDPSECURITYDESC DPSECURITYDESC
HRESULT WINAPI DirectPlayEnumerateA(LPDPENUMDPCALLBACKA, LPVOID)
struct tagDPMSG_SETPLAYERORGROUPDATA DPMSG_SETPLAYERORGROUPDATA
struct tagDPMSG_SETSESSIONDESC DPMSG_SETSESSIONDESC
struct tagDPMSG_GENERIC * LPDPMSG_SESSIONLOST
struct tagDPSESSIONDESC * LPDPSESSIONDESC
struct tagDPMSG_ADDGROUPTOGROUP DPMSG_ADDGROUPTOGROUP
struct IDirectPlay3 * LPDIRECTPLAY3
struct tagDPMSG_GENERIC DPMSG_SESSIONLOST
BOOL(CALLBACK * LPDPENUMCONNECTIONSCALLBACK)(LPCGUID lpguidSP, LPVOID lpConnection, DWORD dwConnectionSize, LPCDPNAME lpName, DWORD dwFlags, LPVOID lpContext)
struct tagDPMSG_GENERIC DPMSG_HOST
struct IDirectPlay2 * LPDIRECTPLAY2A
struct IDirectPlay2 * LPDIRECTPLAY2
struct tagDPMSG_CHAT * LPDPMSG_CHAT
struct tagDPMSG_ADDPLAYERTOGROUP * LPDPMSG_DELETEPLAYERFROMGROUP
struct tagDPMSG_ADDPLAYERTOGROUP DPMSG_DELETEPLAYERFROMGROUP
BOOL(CALLBACK * LPDPENUMPLAYERSCALLBACK)(DPID dpId, LPSTR lpFriendlyName, LPSTR lpFormalName, DWORD dwFlags, LPVOID lpContext)
const DPSECURITYDESC * LPCDPSECURITYDESC
struct tagDPMSG_ADDGROUPTOGROUP DPMSG_DELETEGROUPFROMGROUP
struct tagDPMSG_SECUREMESSAGE DPMSG_SECUREMESSAGE
BOOL(CALLBACK * LPDPENUMSESSIONSCALLBACK2)(LPCDPSESSIONDESC2 lpThisSD, LPDWORD lpdwTimeOut, DWORD dwFlags, LPVOID lpContext)
struct tagDPMSG_SETPLAYERORGROUPNAME DPMSG_SETPLAYERORGROUPNAME
struct tagDPMSG_CREATEPLAYERORGROUP DPMSG_CREATEPLAYERORGROUP
struct tagDPCREDENTIALS * LPDPCREDENTIALS
struct tagDPCREDENTIALS DPCREDENTIALS
struct tagDPMSG_GENERIC * LPDPMSG_HOST
struct IDirectPlay4 * LPDIRECTPLAY4A
struct IDirectPlay3 IDirectPlay3A
struct IDirectPlay4 IDirectPlay4A
struct tagDPLCONNECTION DPLCONNECTION
const DPSESSIONDESC2 * LPCDPSESSIONDESC2
BOOL(CALLBACK * LPDPENUMDPCALLBACKA)(LPGUID lpguidSP, LPSTR lpSPName, DWORD dwMajorVersion, DWORD dwMinorVersion, LPVOID lpContext)
struct IDirectPlay2 IDirectPlay2A
struct tagDPMSG_CREATEPLAYERORGROUP * LPDPMSG_CREATEPLAYERORGROUP
struct tagDPMSG_ADDGROUPTOGROUP * LPDPMSG_ADDGROUPTOGROUP
BOOL(CALLBACK * LPDPENUMPLAYERSCALLBACK2)(DPID dpId, DWORD dwPlayerType, LPCDPNAME lpName, DWORD dwFlags, LPVOID lpContext)
struct tagDPMSG_GENERIC DPMSG_GENERIC
struct tagDPSESSIONDESC2 * LPDPSESSIONDESC2
struct tagDPCAPS * LPDPCAPS
struct tagDPCHAT * LPDPCHAT
struct tagDPMSG_SETGROUPOWNER * LPDPMSG_SETGROUPOWNER
struct tagDPMSG_STARTSESSION * LPDPMSG_STARTSESSION
struct tagDPSESSIONDESC DPSESSIONDESC
BOOL(CALLBACK * LPDPENUMDPCALLBACKW)(LPGUID lpguidSP, LPWSTR lpSPName, DWORD dwMajorVersion, DWORD dwMinorVersion, LPVOID lpContext)
HRESULT WINAPI DirectPlayEnumerateW(LPDPENUMDPCALLBACKW, LPVOID)
struct tagDPMSG_ADDPLAYERTOGROUP DPMSG_ADDPLAYERTOGROUP
struct tagDPSESSIONDESC2 DPSESSIONDESC2
struct IDirectPlay4 * LPDIRECTPLAY4
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
static void *static void *static LPDIRECTPLAY * lplpDP
static HRESULT QueryInterface(REFIID, void **)
static ULONG WINAPI AddRef(IStream *iface)
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
union tagDPCHAT::@2916 DUMMYUNIONNAME
union tagDPCREDENTIALS::@2919 DUMMYUNIONNAME1
union tagDPCREDENTIALS::@2921 DUMMYUNIONNAME3
union tagDPCREDENTIALS::@2920 DUMMYUNIONNAME2
LPDPSESSIONDESC2 lpSessionDesc
union tagDPNAME::@2913 DUMMYUNIONNAME2
union tagDPNAME::@2912 DUMMYUNIONNAME1
DWORD dwEncryptionAlgorithm
union tagDPSECURITYDESC::@2918 DUMMYUNIONNAME2
union tagDPSECURITYDESC::@2917 DUMMYUNIONNAME1
union tagDPSESSIONDESC2::@2914 DUMMYUNIONNAME1
union tagDPSESSIONDESC2::@2915 DUMMYUNIONNAME2
char szSessionName[DPSESSIONNAMELEN]
char szUserField[DPUSERRESERVED]
char szPassword[DPPASSWORDLEN]
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout