home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / LordLucifer / win32asm / files / TasmD3DRMdemo.ZIP / tdx61inc.ZIP / tdplay.inc < prev    next >
Encoding:
Text File  |  1999-08-10  |  20.8 KB  |  553 lines

  1. ; tdplay.inc  (c) Minde  06/08/99 montana@is.lt
  2. ; Content:  TASM DirectPlay include file ver. 1.2
  3. ; converted from dsetup.h, DX ver. 6.1
  4. ;
  5. ;  Feel free to use or distribute the package, part or whole, for any
  6. ; non-commercial use preferably crediting me.
  7. ;  Also feel free to contact me at the above address if you experience any
  8. ; problems or notice any omissions.
  9.  
  10. ; GUIDS used by DirectPlay objects
  11. IID_IDirectPlay2W   GUID <02b74f7c0h,09154h,011cfh,0a9h,0cdh,000h,0aah,000h,068h,086h,0e3h>
  12. IID_IDirectPlay2A   GUID <09d460580h,0a822h,011cfh,096h,00ch,000h,080h,0c7h,053h,04eh,082h>
  13. IID_IDirectPlay3W   GUID <0133efe40h,032dch,011d0h,09ch,0fbh,000h,0a0h,0c9h,00ah,043h,0cbh>
  14. IID_IDirectPlay3A   GUID <0133efe41h,032dch,011d0h,09ch,0fbh,000h,0a0h,0c9h,00ah,043h,0cbh>
  15. IID_IDirectPlay4W   GUID <00ab1c530h,04745h,011d1h,0a7h,0a1h,000h,000h,0f8h,003h,0abh,0fch>
  16. IID_IDirectPlay4A   GUID <00ab1c531h,04745h,011d1h,0a7h,0a1h,000h,000h,0f8h,003h,0abh,0fch>
  17.  
  18. CLSID_DirectPlay    GUID <0d1eb6d20h,08923h,011d0h,09dh,097h,000h,0a0h,0c9h,00ah,043h,0cbh>
  19. IID_IDirectPlay     GUID <05454e9a0h,0db65h,011ceh,092h,01ch,000h,0aah,000h,06ch,049h,072h>
  20.  
  21. DPSPGUID_IPX        GUID <0685bc400h,09d2ch,011cfh,0a9h,0cdh,000h,0aah,000h,068h,086h,0e3h>
  22. DPSPGUID_TCPIP      GUID <036E95EE0h,08577h,011cfh,096h,00ch,000h,080h,0c7h,053h,04eh,082h>
  23. DPSPGUID_SERIAL     GUID <00f1d6860h,088d9h,011cfh,09ch,04eh,000h,0a0h,0c9h,005h,042h,05eh>
  24. DPSPGUID_MODEM      GUID <044eaa760h,0cb68h,011cfh,09ch,04eh,000h,0a0h,0c9h,005h,042h,05eh>
  25.  
  26.  
  27. DPID typedef DWORD
  28.  
  29. DPID_SYSMSG = 0
  30. DPID_ALLPLAYERS = 0
  31. DPID_SERVERPLAYER = 1;
  32. DPID_RESERVEDRANGE = 100;
  33. DPID_UNKNOWN = 0FFFFFFFFh;
  34.  
  35.  
  36. DPCAPS STRUCT
  37. dpcaps_dwSize              DD ? ; Size of structure, in bytes
  38. dpcaps_dwFlags             DD ? ; DPCAPS_xxx flags
  39. dpcaps_dwMaxBufferSize     DD ? ; Maximum message size, in bytes,  for this service provider
  40. dpcaps_dwMaxQueueSize      DD ? ; Obsolete. 
  41. dpcaps_dwMaxPlayers        DD ? ; Maximum players/groups (local + remote)
  42. dpcaps_dwHundredBaud       DD ? ; Bandwidth in 100 bits per second units, i.e. 24 is 2400, 96 is 9600, etc.
  43. dpcaps_dwLatency           DD ? ; Estimated latency; 0 = unknown
  44. dpcaps_dwMaxLocalPlayers   DD ? ; Maximum # of locally created players allowed
  45. dpcaps_dwHeaderLength      DD ? ; Maximum header length, in bytes, on messages added by the service provider
  46. dpcaps_dwTimeout           DD ? ; Service provider's suggested timeout value. This is how long DirectPlay will wait for responses to system messages
  47. DPCAPS ENDS
  48.  
  49.  
  50. DPCAPS_ISHOST                   = 000000002h
  51. DPCAPS_GROUPOPTIMIZED           = 000000008h
  52. DPCAPS_KEEPALIVEOPTIMIZED       = 000000010h
  53. DPCAPS_GUARANTEEDOPTIMIZED      = 000000020h
  54. DPCAPS_GUARANTEEDSUPPORTED      = 000000040h
  55. DPCAPS_SIGNINGSUPPORTED         = 000000080h;
  56. DPCAPS_ENCRYPTIONSUPPORTED      = 000000100h;
  57. DPPLAYERCAPS_LOCAL              = 000000800h;
  58. DPCAPS_ASYNCCANCELSUPPORTED     = 000001000h;
  59. DPCAPS_ASYNCCANCELALLSUPPORTED  = 000002000h;
  60. DPCAPS_SENDTIMEOUTSUPPORTED     = 000004000h;
  61. DPCAPS_SENDPRIORITYSUPPORTED    = 000008000h;
  62. DPCAPS_ASYNCSUPPORTED           = 000010000h;
  63.  
  64.  
  65. DPSESSIONDESC2 STRUCT
  66. dpsessiondesc2_dwSize              DD ? ; Size of structure
  67. dpsessiondesc2_dwFlags             DD ? ; DPSESSION_xxx flags
  68. dpsessiondesc2_guidInstance        GUID ? ; ID for the session instance
  69. dpsessiondesc2_guidApplication     GUID ? ; GUID of the DirectPlay application. GUID_NULL for all applications.
  70. dpsessiondesc2_dwMaxPlayers        DD ? ; Maximum # players allowed in session
  71. dpsessiondesc2_dwCurrentPlayers    DD ? ; Current # players in session (read only)
  72.     union              ; Name of the session
  73. dpsessiondesc2_lpszSessionName     DD ? ; Unicode
  74. dpsessiondesc2_lpszSessionNameA    DD ? ; ANSI
  75.     ends
  76.     union              ; Password of the session (optional)
  77. dpsessiondesc2_lpszPassword        DD ? ; Unicode
  78. dpsessiondesc2_lpszPasswordA       DD ? ; ANSI
  79.     ends
  80. dpsessiondesc2_dwReserved1         DD ? ; Reserved for future MS use.
  81. dpsessiondesc2_dwReserved2         DD ?
  82. dpsessiondesc2_dwUser1             DD ? ; For use by the application
  83. dpsessiondesc2_dwUser2             DD ?
  84. dpsessiondesc2_dwUser3             DD ?
  85. dpsessiondesc2_dwUser4             DD ?
  86. DPSESSIONDESC2 ENDS
  87.  
  88. DPSESSION_NEWPLAYERSDISABLED    = 000000001h
  89. DPSESSION_MIGRATEHOST           = 000000004h
  90. DPSESSION_NOMESSAGEID           = 000000008h
  91. DPSESSION_JOINDISABLED          = 000000020h
  92. DPSESSION_KEEPALIVE             = 000000040h
  93. DPSESSION_NODATAMESSAGES        = 000000080h
  94. DPSESSION_SECURESERVER          = 000000100h;
  95. DPSESSION_PRIVATE               = 000000200h;
  96. DPSESSION_PASSWORDREQUIRED      = 000000400h;
  97. DPSESSION_MULTICASTSERVER       = 000000800h;
  98. DPSESSION_CLIENTSERVER          = 000001000h;
  99. DPSESSION_DIRECTPLAYPROTOCOL    = 000002000h;
  100. DPSESSION_NOPRESERVEORDER       = 000004000h;
  101. DPSESSION_OPTIMIZELATENCY       = 000008000h;
  102.  
  103.  
  104.  
  105. DPNAME STRUCT
  106. dpname_dwSize          DD ? ; Size of structure
  107. dpname_dwFlags         DD ? ; Not used. Must be zero.
  108.     union          ; The short or friendly name
  109. dpname_lpszShortName   DD ? ; Unicode
  110. dpname_lpszShortNameA  DD ? ; ANSI
  111.     ends
  112.     union          ; The long or formal name
  113. dpname_lpszLongName    DD ? ; Unicode
  114. dpname_lpszLongNameA   DD ? ; ANSI
  115.     ends
  116. DPNAME ENDS
  117.  
  118.  
  119. DPCREDENTIALS struct
  120. dpcredentials_dwSize          DD ?
  121. dpcredentials_dwFlags         DD ?
  122.     union
  123. dpcredentials_lpszUsername    DD ?
  124. dpcredentials_lpszUsernameA   DD ?
  125.     ends
  126.     union
  127. dpcredentials_lpszPassword    DD ?
  128. dpcredentials_lpszPasswordA   DD ?
  129.     ends
  130.     union
  131. dpcredentials_lpszDomain      DD ?
  132. dpcredentials_lpszDomainA     DD ?
  133.     ends
  134. DPCREDENTIALS ends
  135.  
  136.  
  137. DPSECURITYDESC struct
  138. dpsecuritydesc_dwSize                  DD ?
  139. dpsecuritydesc_dwFlags                 DD ?
  140.     union
  141. dpsecuritydesc_lpszSSPIProvider        DD ?
  142. dpsecuritydesc_lpszSSPIProviderA       DD ?
  143.     ends
  144.     union
  145. dpsecuritydesc_lpszCAPIProvider        DD ?
  146. dpsecuritydesc_lpszCAPIProviderA       DD ?
  147.     ends
  148. dpsecuritydesc_dwCAPIProviderType      DD ?
  149. dpsecuritydesc_dwEncryptionAlgorithm   DD ?
  150. DPSECURITYDESC ends
  151.  
  152.  
  153. DPACCOUNTDESC struct
  154. dpaccountdesc_dwSize              DD ?
  155. dpaccountdesc_dwFlags             DD ?
  156.     union
  157. dpaccountdesc_lpszAccountID       DD ?
  158. dpaccountdesc_lpszAccountIDA      DD ?
  159.     ends
  160. DPACCOUNTDESC ends
  161.  
  162.  
  163. DPLCONNECTION struct
  164. dplconnection_dwSize              DD ?
  165. dplconnection_dwFlags             DD ?
  166. dplconnection_lpSessionDesc       DD ?
  167. dplconnection_lpPlayerName        DD ?
  168. dplconnection_guidSP              GUID ?
  169. dplconnection_lpAddress           DD ?
  170. dplconnection_dwAddressSize       DD ?
  171. DPLCONNECTION ends
  172.  
  173. DPCHAT struct
  174. dpchat_dwSize              DD ?
  175. dpchat_dwFlags             DD ?
  176.     union
  177. dpchat_lpszMessage         DD ?
  178. dpchat_lpszMessageA        DD ?
  179.     ends
  180. DPCHAT ends
  181.  
  182. SGBUFFER struct
  183. sgbuffer_len     DD ?
  184. sgbuffer_pData   DD ?
  185. SGBUFFER ends
  186.  
  187.  
  188.  
  189. DPESC_TIMEDOUT          = 000000001h
  190.  
  191. ; API's
  192. DirectPlayEnumerate     = DirectPlayEnumerateA
  193. DirectPlayEnumerateA    PROCDESC STDCALL, :DWORD, :DWORD
  194. DirectPlayCreate        PROCDESC STDCALL, :DWORD, :DWORD, :DWORD
  195.  
  196.  
  197. ; IDirectPlay2
  198. ; IUnknown methods
  199. DP2QueryInterface           = 0
  200. DP2AddRef                   = 4
  201. DP2Release                  = 8
  202. ; IDirectPlay2 methods
  203. DP2AddPlayerToGroup             = 12
  204. DP2Close                        = 16
  205. DP2CreateGroup                  = 20
  206. DP2CreatePlayer                 = 24
  207. DP2DeletePlayerFromGroup        = 28
  208. DP2DestroyGroup                 = 32
  209. DP2DestroyPlayer                = 36
  210. DP2EnumGroupPlayers             = 40
  211. DP2EnumGroups                   = 44
  212. DP2EnumPlayers                  = 48
  213. DP2EnumSessions                 = 52
  214. DP2GetCaps                      = 56
  215. DP2GetGroupData                 = 60
  216. DP2GetGroupName                 = 64
  217. DP2GetMessageCount              = 68
  218. DP2GetPlayerAddress             = 72
  219. DP2GetPlayerCaps                = 76
  220. DP2GetPlayerData                = 80
  221. DP2GetPlayerName                = 84
  222. DP2GetSessionDesc               = 88
  223. DP2Initialize                   = 92
  224. DP2Open                         = 96
  225. DP2Receive                      = 100
  226. DP2Send                         = 104
  227. DP2SetGroupData                 = 108
  228. DP2SetGroupName                 = 112
  229. DP2SetPlayerData                = 116
  230. DP2SetPlayerName                = 120
  231. DP2SetSessionDesc               = 124
  232. ; IDirectPlay3 methods
  233. DP3AddGroupToGroup              = 128
  234. DP3CreateGroupInGroup           = 132
  235. DP3DeleteGroupFromGroup         = 136
  236. DP3EnumConnections              = 140
  237. DP3EnumGroupsInGroup            = 144
  238. DP3GetGroupConnectionSettings   = 148
  239. DP3InitializeConnection         = 152
  240. DP3SecureOpen                   = 156
  241. DP3SendChatMessage              = 160
  242. DP3SetGroupConnectionSettings   = 164
  243. DP3StartSession                 = 168
  244. DP3GetGroupFlags                = 172
  245. DP3GetGroupParent               = 176
  246. DP3GetPlayerAccount             = 180
  247. DP3GetPlayerFlags               = 184
  248. ; IDirectPlay4 methods
  249. DP4GetGroupOwner                = 188
  250. DP4SetGroupOwner                = 192
  251. DP4SendEx(idFrom                = 196
  252. DP4GetMessageQueue              = 200
  253. DP4CancelMessage                = 204
  254. DP4CancelPriority               = 208
  255.  
  256.  
  257. ; EnumConnections API flags
  258.  
  259. DPCONNECTION_DIRECTPLAY         = 00000001h;
  260. DPCONNECTION_DIRECTPLAYLOBBY    = 00000002h;
  261.  
  262. ; EnumPlayers API flags
  263.  
  264. DPENUMPLAYERS_ALL           = 000000000h
  265. DPENUMGROUPS_ALL = DPENUMPLAYERS_ALL;
  266. DPENUMPLAYERS_LOCAL         = 000000008h
  267. DPENUMGROUPS_LOCAL = DPENUMPLAYERS_LOCAL;
  268. DPENUMPLAYERS_REMOTE        = 000000010h
  269. DPENUMGROUPS_REMOTE = DPENUMPLAYERS_REMOTE;
  270. DPENUMPLAYERS_GROUP         = 000000020h
  271. DPENUMPLAYERS_SESSION       = 000000080h
  272. DPENUMGROUPS_SESSION = DPENUMPLAYERS_SESSION;
  273. DPENUMPLAYERS_SERVERPLAYER  = 000000100h;
  274. DPENUMPLAYERS_SPECTATOR     = 000000200h;
  275. DPENUMGROUPS_SHORTCUT       = 000000400h;
  276. DPENUMGROUPS_STAGINGAREA    = 000000800h;
  277. DPENUMGROUPS_HIDDEN         = 000001000h;
  278. DPENUMPLAYERS_OWNER         = 000002000h;
  279.  
  280. DPPLAYER_SERVERPLAYER = DPENUMPLAYERS_SERVERPLAYER;
  281. DPPLAYER_SPECTATOR = DPENUMPLAYERS_SPECTATOR;
  282. DPPLAYER_LOCAL = DPENUMPLAYERS_LOCAL;
  283. DPPLAYER_OWNER = DPENUMPLAYERS_OWNER;
  284.  
  285. DPGROUP_STAGINGAREA = DPENUMGROUPS_STAGINGAREA;
  286. DPGROUP_LOCAL = DPENUMGROUPS_LOCAL;
  287. DPGROUP_HIDDEN = DPENUMGROUPS_HIDDEN;
  288.  
  289. DPENUMSESSIONS_AVAILABLE        = 000000001h
  290. DPENUMSESSIONS_ALL              = 000000002h
  291. DPENUMSESSIONS_ASYNC            = 000000010h;
  292. DPENUMSESSIONS_STOPASYNC        = 000000020h;
  293. DPENUMSESSIONS_PASSWORDREQUIRED = 000000040h;
  294. DPENUMSESSIONS_RETURNSTATUS     = 000000080h;
  295.  
  296. DPGETCAPS_GUARANTEED        = 000000001h
  297. DPGET_REMOTE                = 000000000h
  298. DPGET_LOCAL                 = 000000001h
  299.  
  300. DPOPEN_JOIN                 = 000000001h
  301. DPOPEN_CREATE               = 000000002h
  302. DPOPEN_RETURNSTATUS = DPENUMSESSIONS_RETURNSTATUS;
  303.  
  304. DPLCONNECTION_CREATESESSION = DPOPEN_CREATE;
  305. DPLCONNECTION_JOINSESSION = DPOPEN_JOIN;
  306.  
  307. DPRECEIVE_ALL               = 000000001h
  308. DPRECEIVE_TOPLAYER          = 000000002h
  309. DPRECEIVE_FROMPLAYER        = 000000004h
  310. DPRECEIVE_PEEK              = 000000008h
  311.  
  312. DPSEND_GUARANTEED           = 000000001h
  313. DPSEND_HIGHPRIORITY         = 000000002h
  314. DPSEND_OPENSTREAM           = 000000008h
  315. DPSEND_CLOSESTREAM          = 000000010h
  316. DPSEND_SIGNED               = 000000020h;
  317. DPSEND_ENCRYPTED            = 000000040h;
  318. DPSEND_LOBBYSYSTEMMESSAGE   = 000000080h;
  319. DPSEND_ASYNC                = 000000200h;
  320. DPSEND_NOSENDCOMPLETEMSG    = 000000400h;
  321. DPSEND_MAX_PRI              = 00000FFFFh;
  322. DPSEND_MAX_PRIORITY = DPSEND_MAX_PRI;
  323.  
  324. DPSET_REMOTE                = 000000000h
  325. DPSET_LOCAL                 = 000000001h
  326. DPSET_GUARANTEED            = 000000002h
  327.  
  328. DPMESSAGEQUEUE_SEND         = 000000001h;
  329. DPMESSAGEQUEUE_RECEIVE      = 000000002h;
  330.  
  331. DPCONNECT_RETURNSTATUS = DPENUMSESSIONS_RETURNSTATUS;
  332.  
  333.  
  334. ; DirectPlay system messages and message data structures
  335.  
  336. DPSYS_CREATEPLAYERORGROUP   = 00003h
  337. DPSYS_DESTROYPLAYERORGROUP  = 00005h
  338. DPSYS_ADDPLAYERTOGROUP      = 00007h
  339. DPSYS_DELETEPLAYERFROMGROUP = 00021h
  340. DPSYS_SESSIONLOST           = 00031h
  341. DPSYS_HOST                  = 00101h
  342. DPSYS_SETPLAYERORGROUPDATA  = 00102h
  343. DPSYS_SETPLAYERORGROUPNAME  = 00103h
  344. DPSYS_SETSESSIONDESC        = 00104h;
  345. DPSYS_ADDGROUPTOGROUP       = 00105h;
  346. DPSYS_DELETEGROUPFROMGROUP  = 00106h;
  347. DPSYS_SECUREMESSAGE         = 00107h;
  348. DPSYS_STARTSESSION          = 00108h;
  349. DPSYS_CHAT                  = 00109h;
  350. DPSYS_SETGROUPOWNER         = 0010Ah;
  351. DPSYS_SENDCOMPLETE          = 0010Dh;
  352.  
  353. DPPLAYERTYPE_GROUP          = 000000000h
  354. DPPLAYERTYPE_PLAYER         = 000000001h
  355.  
  356. DPMSG_GENERIC STRUCT
  357. dpmsg_generic_dwType          DD ? ;  Message type
  358. DPMSG_GENERIC ENDS
  359.  
  360. DPMSG_CREATEPLAYERORGROUP STRUCT
  361. dpmsg_createplayerorgroup_dwType              DD ? ; Message type
  362. dpmsg_createplayerorgroup_dwPlayerType        DD ? ; Is it a player or group
  363. dpmsg_createplayerorgroup_dpId                DPID ? ; ID of the player or group
  364. dpmsg_createplayerorgroup_dwCurrentPlayers    DD ? ; current # players & groups in session
  365. dpmsg_createplayerorgroup_lpData              DD ? ; pointer to remote data
  366. dpmsg_createplayerorgroup_dwDataSize          DD ? ; size of remote data
  367. dpmsg_createplayerorgroup_dpnName             DPNAME ? ; structure with name info
  368. DPMSG_CREATEPLAYERORGROUP ENDS
  369.  
  370. DPMSG_DESTROYPLAYERORGROUP STRUCT
  371. dpmsg_destroyplayerorgroup_dwType              DD ? ; Message type
  372. dpmsg_destroyplayerorgroup_dwPlayerType        DD ? ; Is it a player or group
  373. dpmsg_destroyplayerorgroup_dpId                DPID ? ; player ID being deleted
  374. dpmsg_destroyplayerorgroup_lpLocalData         DD ? ; copy of players local data
  375. dpmsg_destroyplayerorgroup_dwLocalDataSize     DD ? ; sizeof local data
  376. dpmsg_destroyplayerorgroup_lpRemoteData        DD ? ; copy of players remote data
  377. dpmsg_destroyplayerorgroup_dwRemoteDataSize    DD ? ; sizeof remote data
  378. DPMSG_DESTROYPLAYERORGROUP ENDS
  379.  
  380.  
  381. DPMSG_ADDPLAYERTOGROUP STRUCT
  382. dpmsg_addplayertogroup_dwType              DD ? ; Message type
  383. dpmsg_addplayertogroup_dpIdGroup           DPID ? ; group ID being added to
  384. dpmsg_addplayertogroup_dpIdPlayer          DPID ? ; player ID being added
  385. DPMSG_ADDPLAYERTOGROUP ENDS
  386.  
  387. DPMSG_DELETEPLAYERFROMGROUP typedef DPMSG_ADDPLAYERTOGROUP
  388.  
  389.  
  390. DPMSG_ADDGROUPTOGROUP struct
  391. dpmsg_addgrouptogroup_dwType              DD ? ;   Message type
  392. dpmsg_addgrouptogroup_dpIdParentGroup     DPID ? ; group ID being added to
  393. dpmsg_addgrouptogroup_dpIdGroup           DPID ? ; group ID being added
  394. DPMSG_ADDGROUPTOGROUP ends
  395.  
  396. DPMSG_DELETEGROUPFROMGROUP typedef DPMSG_ADDGROUPTOGROUP
  397.  
  398.  
  399. DPMSG_SETPLAYERORGROUPDATA STRUCT
  400. dpmsg_setplayerorgroupdata_dwType              DD ? ; Message type
  401. dpmsg_setplayerorgroupdata_dwPlayerType        DD ? ; Is it a player or group
  402. dpmsg_setplayerorgroupdata_dpId                DPID ? ; ID of player or group
  403. dpmsg_setplayerorgroupdata_lpData              DD ? ; pointer to remote data
  404. dpmsg_setplayerorgroupdata_dwDataSize          DD ? ; size of remote data
  405. DPMSG_SETPLAYERORGROUPDATA ENDS
  406.  
  407. DPMSG_SETPLAYERORGROUPNAME STRUCT
  408. dpmsg_setplayerorgroupname_dwType              DD ? ; Message type
  409. dpmsg_setplayerorgroupname_dwPlayerType        DD ? ; Is it a player or group
  410. dpmsg_setplayerorgroupname_dpId                DPID ? ; ID of player or group
  411. dpmsg_setplayerorgroupname_dpnName             DPNAME ? ; structure with new name info
  412. DPMSG_SETPLAYERORGROUPNAME ENDS
  413.  
  414.  
  415. DPMSG_SETSESSIONDESC struct
  416. dpmsg_setsessiondesc_dwType              DD ? ; Message type
  417. dpmsg_setsessiondesc_dpDesc              DD ? ; Session desc
  418. DPMSG_SETSESSIONDESC ends
  419.  
  420. DPMSG_HOST typedef DPMSG_GENERIC
  421. DPMSG_SESSIONLOST typedef DPMSG_GENERIC
  422.  
  423. DPMSG_SECUREMESSAGE struct
  424. dpmsg_securemessage_dwType              DD ? ; Message Type
  425. dpmsg_securemessage_dwFlags             DD ? ; Signed/Encrypted
  426. dpmsg_securemessage_dpIdFrom            DPID ? ; ID of Sending Player
  427. dpmsg_securemessage_lpData              DD ? ; Player message
  428. dpmsg_securemessage_dwDataSize          DD ? ; Size of player message
  429. DPMSG_SECUREMESSAGE ends
  430.  
  431.  
  432. DPMSG_STARTSESSION struct
  433. dpmsg_startsession_dwType              DD ? ; Message type
  434. dpmsg_startsession_lpConn              DD ? ; DPLConnection structure
  435. DPMSG_STARTSESSION ends
  436.  
  437.  
  438. DPMSG_CHAT struct
  439. dpmsg_chat_dwType              DD ? ; Message type
  440. dpmsg_chat_dwFlags             DD ? ; Message flags
  441. dpmsg_chat_idFromPlayer        DPID ? ; ID of the Sending Player
  442. dpmsg_chat_idToPlayer          DPID ? ; ID of the To Player
  443. dpmsg_chat_idToGroup           DPID ? ; ID of the To Group
  444. dpmsg_chat_lpChat              DD ? ; Pointer to a structure containing the chat message
  445. DPMSG_CHAT ends
  446.  
  447. DPMSG_SETGROUPOWNER struct
  448. dpmsg_setgroupowner_dwType              DWORD ? ; Message type
  449. dpmsg_setgroupowner_idGroup             DPID ? ; ID of the group
  450. dpmsg_setgroupowner_idNewOwner          DPID ? ; ID of the player that is the new owner
  451. dpmsg_setgroupowner_idOldOwner          DPID ? ; ID of the player that used to be the owner
  452. DPMSG_SETGROUPOWNER ends
  453.  
  454. DPMSG_SENDCOMPLETE struct
  455. dpmsg_sendcomplete_dwType              DD ? ;        // Message type
  456. dpmsg_sendcomplete_idFrom              DPID ? ;
  457. dpmsg_sendcomplete_idTo                DPID ? ;
  458. dpmsg_sendcomplete_dwFlags             DD ?
  459. dpmsg_sendcomplete_dwPriority          DD ?
  460. dpmsg_sendcomplete_dwTimeout           DD ?
  461. dpmsg_sendcomplete_lpvContext          DD ?
  462. dpmsg_sendcomplete_dwMsgID             DD ?
  463. dpmsg_sendcomplete_hr                  DD ?
  464. dpmsg_sendcomplete_dwSendTime          DD ?
  465. DPMSG_SENDCOMPLETE ends
  466.  
  467.  
  468.  
  469. ; DIRECTPLAY ERRORS
  470.  
  471.  
  472.   MAKE_DPHRESULT = 088770000h;
  473.   DP_OK = S_OK;
  474.   DPERR_ALREADYINITIALIZED = MAKE_DPHRESULT + 5;
  475.   DPERR_ACCESSDENIED = MAKE_DPHRESULT + 10;
  476.   DPERR_ACTIVEPLAYERS = MAKE_DPHRESULT + 20;
  477.   DPERR_BUFFERTOOSMALL = MAKE_DPHRESULT + 30;
  478.   DPERR_CANTADDPLAYER = MAKE_DPHRESULT + 40;
  479.   DPERR_CANTCREATEGROUP = MAKE_DPHRESULT + 50;
  480.   DPERR_CANTCREATEPLAYER = MAKE_DPHRESULT + 60;
  481.   DPERR_CANTCREATESESSION = MAKE_DPHRESULT + 70;
  482.   DPERR_CAPSNOTAVAILABLEYET = MAKE_DPHRESULT + 80;
  483.   DPERR_EXCEPTION = MAKE_DPHRESULT + 90;
  484.   DPERR_GENERIC = E_FAIL;
  485.   DPERR_INVALIDFLAGS = MAKE_DPHRESULT + 120;
  486.   DPERR_INVALIDOBJECT = MAKE_DPHRESULT + 130;
  487.   DPERR_INVALIDPARAM = E_INVALIDARG;
  488.   DPERR_INVALIDPARAMS = DPERR_INVALIDPARAM;
  489.   DPERR_INVALIDPLAYER = MAKE_DPHRESULT + 150;
  490.   DPERR_INVALIDGROUP = MAKE_DPHRESULT + 155;
  491.   DPERR_NOCAPS = MAKE_DPHRESULT + 160;
  492.   DPERR_NOCONNECTION = MAKE_DPHRESULT + 170;
  493.   DPERR_NOMEMORY = E_OUTOFMEMORY;
  494.   DPERR_OUTOFMEMORY = DPERR_NOMEMORY;
  495.   DPERR_NOMESSAGES = MAKE_DPHRESULT + 190;
  496.   DPERR_NONAMESERVERFOUND = MAKE_DPHRESULT + 200;
  497.   DPERR_NOPLAYERS = MAKE_DPHRESULT + 210;
  498.   DPERR_NOSESSIONS = MAKE_DPHRESULT + 220;
  499.   DPERR_PENDING = E_PENDING;
  500.   DPERR_SENDTOOBIG = MAKE_DPHRESULT + 230;
  501.   DPERR_TIMEOUT = MAKE_DPHRESULT + 240;
  502.   DPERR_UNAVAILABLE = MAKE_DPHRESULT + 250;
  503.   DPERR_UNSUPPORTED = E_NOTIMPL;
  504.   DPERR_BUSY = MAKE_DPHRESULT + 270;
  505.   DPERR_USERCANCEL = MAKE_DPHRESULT + 280;
  506.   DPERR_NOINTERFACE = E_NOINTERFACE;
  507.   DPERR_CANNOTCREATESERVER = MAKE_DPHRESULT + 290;
  508.   DPERR_PLAYERLOST = MAKE_DPHRESULT + 300;
  509.   DPERR_SESSIONLOST = MAKE_DPHRESULT + 310;
  510.   DPERR_UNINITIALIZED = MAKE_DPHRESULT + 320;
  511.   DPERR_NONEWPLAYERS = MAKE_DPHRESULT + 330;
  512.   DPERR_INVALIDPASSWORD = MAKE_DPHRESULT + 340;
  513.   DPERR_CONNECTING = MAKE_DPHRESULT + 350;
  514.   DPERR_CONNECTIONLOST = MAKE_DPHRESULT + 360;
  515.   DPERR_UNKNOWNMESSAGE = MAKE_DPHRESULT + 370;
  516.   DPERR_CANCELFAILED = MAKE_DPHRESULT + 380;
  517.   DPERR_INVALIDPRIORITY = MAKE_DPHRESULT + 390;
  518.   DPERR_NOTHANDLED = MAKE_DPHRESULT + 400;
  519.   DPERR_CANCELLED = MAKE_DPHRESULT + 410;
  520.   DPERR_ABORTED = MAKE_DPHRESULT + 420;
  521.  
  522.   DPERR_BUFFERTOOLARGE = MAKE_DPHRESULT + 1000;
  523.   DPERR_CANTCREATEPROCESS = MAKE_DPHRESULT + 1010;
  524.   DPERR_APPNOTSTARTED = MAKE_DPHRESULT + 1020;
  525.   DPERR_INVALIDINTERFACE = MAKE_DPHRESULT + 1030;
  526.   DPERR_NOSERVICEPROVIDER = MAKE_DPHRESULT + 1040;
  527.   DPERR_UNKNOWNAPPLICATION = MAKE_DPHRESULT + 1050;
  528.   DPERR_NOTLOBBIED = MAKE_DPHRESULT + 1070;
  529.   DPERR_SERVICEPROVIDERLOADED = MAKE_DPHRESULT + 1080;
  530.   DPERR_ALREADYREGISTERED = MAKE_DPHRESULT + 1090;
  531.   DPERR_NOTREGISTERED = MAKE_DPHRESULT + 1100;
  532.  
  533. ; Security related errors
  534.  
  535.   DPERR_AUTHENTICATIONFAILED = MAKE_DPHRESULT + 2000;
  536.   DPERR_CANTLOADSSPI = MAKE_DPHRESULT + 2010;
  537.   DPERR_ENCRYPTIONFAILED = MAKE_DPHRESULT + 2020;
  538.   DPERR_SIGNFAILED = MAKE_DPHRESULT + 2030;
  539.   DPERR_CANTLOADSECURITYPACKAGE = MAKE_DPHRESULT + 2040;
  540.   DPERR_ENCRYPTIONNOTSUPPORTED = MAKE_DPHRESULT + 2050;
  541.   DPERR_CANTLOADCAPI = MAKE_DPHRESULT + 2060;
  542.   DPERR_NOTLOGGEDIN = MAKE_DPHRESULT + 2070;
  543.   DPERR_LOGONDENIED = MAKE_DPHRESULT + 2080;
  544.  
  545. ;****************************************************************************
  546. ; *
  547. ; *  dplay 1.0 obsolete structures + interfaces
  548. ; *  NOT Included. New apps should use IDirectPlay2
  549. ; *
  550. ; ****************************************************************************
  551.  
  552. ;end of file
  553.