home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / duel / comm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-15  |  1.5 KB  |  42 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File:        comm.h
  6.  *  Content:    communication routines include file
  7.  *
  8.  *
  9.  ***************************************************************************/
  10. #define IDIRECTPLAY2_OR_GREATER
  11. #include <dplay.h>
  12. #include "duel.h"
  13.  
  14. /*
  15.  * Prototypes
  16.  */
  17. HRESULT DPlayClose(void);
  18. HRESULT DPlayCreate(LPVOID lpCon);
  19. HRESULT DPlayCreatePlayer(LPDPID lppidID, LPTSTR lpPlayerName, HANDLE hEvent, 
  20.                           LPVOID lpData, DWORD dwDataSize);
  21. HRESULT DPlayCreateSession(LPTSTR lptszSessionName);
  22. HRESULT DPlayDestroyPlayer(DPID pid);
  23. HRESULT DPlayEnumPlayers(LPGUID lpSessionGuid, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback, 
  24.                          LPVOID lpContext, DWORD dwFlags);
  25. HRESULT DPlayEnumSessions(DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumCallback, 
  26.                           LPVOID lpContext, DWORD dwFlags);
  27. HRESULT DPlayGetPlayerData(DPID pid, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags);
  28. HRESULT DPlayGetSessionDesc(void);
  29. BOOL    IsDPlay(void);
  30. HRESULT DPlayOpenSession(LPGUID lpSessionGuid);
  31. HRESULT DPlayReceive(LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData, 
  32.                      LPDWORD lpdwDataSize);
  33. HRESULT DPlayRelease(void);
  34. HRESULT DPlaySend(DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData, 
  35.                   DWORD dwDataSize);
  36. HRESULT DPlaySetPlayerData(DPID pid, LPVOID lpData, DWORD dwSize, DWORD dwFlags);
  37.  
  38.  
  39.  
  40.  
  41.  
  42.