DPCHAT.H

/*========================================================================== 
*
* Copyright (C) 1996-1997 Microsoft Corporation. All Rights Reserved.
*
* File: dpchat.h
* Content:Header file for dpchat.cpp
*
***************************************************************************/

#define IDIRECTPLAY2_OR_GREATER
#include <dplay.h>

// constants
const DWORD MAXPLAYERS = 10;// max no. players in the session

// structure used to store DirectPlay information
typedef struct {
LPDIRECTPLAY3AlpDirectPlay3A;// IDirectPlay3A interface pointer
HANDLEhPlayerEvent;// player event to use
DPIDdpidPlayer;// ID of player created
BOOLbIsHost;// TRUE if we are hosting the session
} DPLAYINFO, *LPDPLAYINFO;

// guid for this application
// {5BFDB060-06A4-11d0-9C4F-00A0C905425E}
DEFINE_GUID(DPCHAT_GUID,
0x5bfdb060, 0x6a4, 0x11d0, 0x9c, 0x4f, 0x0, 0xa0, 0xc9, 0x5, 0x42, 0x5e);

// prototypes
extern HRESULTConnectUsingLobby(LPDPLAYINFO lpDPInfo);
extern HRESULTConnectUsingDialog(HINSTANCE hInstance, LPDPLAYINFO lpDPInfo);
extern voidErrorBox(LPSTR lpszErrorStr, HRESULT hr);