home *** CD-ROM | disk | FTP | other *** search
/ WarCraft 2000 - Nuclear Epidemic / W2000.nrg / SOURCE.War2000 / Dpchat.h < prev    next >
C/C++ Source or Header  |  1998-03-24  |  1KB  |  34 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1996-1997 Microsoft Corporation.  All Rights Reserved.
  4.  *
  5.  *  File:       dpchat.h
  6.  *  Content:    Header file for dpchat.cpp
  7.  *
  8.  ***************************************************************************/
  9.  
  10. #define IDIRECTPLAY2_OR_GREATER
  11. #include "dplay.h"
  12.  
  13. // constants
  14. const DWORD MAXPLAYERS = 10;            // max no. players in the session
  15.  
  16. // structure used to store DirectPlay information
  17. typedef struct {
  18.     LPDIRECTPLAY3A    lpDirectPlay3A;        // IDirectPlay3A interface pointer
  19.     HANDLE            hPlayerEvent;        // player event to use
  20.     DPID            dpidPlayer;            // ID of player created
  21.     BOOL            bIsHost;            // TRUE if we are hosting the session
  22. } DPLAYINFO, *LPDPLAYINFO;
  23.  
  24. // guid for this application
  25. // {5BFDB060-06A4-11d0-9C4F-00A0C905425E}
  26. DEFINE_GUID(DPCHAT_GUID, 
  27. 0x5bfdb060, 0x6a4, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);
  28.  
  29. // prototypes
  30. //extern HRESULT    ConnectUsingLobby(LPDPLAYINFO lpDPInfo);
  31. //extern HRESULT    ConnectUsingDialog(HINSTANCE hInstance, LPDPLAYINFO lpDPInfo);
  32. //extern void        ErrorBox(LPSTR lpszErrorStr, HRESULT hr);
  33.  
  34.