typedef struct {
   DWORD dwType;            // message type (APPMSG_CHATSTRING)
   char  szMsg[1];          // message string (variable length)
} MSG_CHATSTRING, *LPMSG_CHATSTRING;



extern BOOL bUSANDO_REDEDP;
extern BOOL bCLIENTE_CONECTOU;
extern BOOL bCLIENTE_ESCOLHEU_PERSONAGEM;
extern DPLAYINFO   DPInfo;
extern BOOL bSERVIDOR_DESISTIU_DE_ESPERAR_PERSONAGEM;



extern int TentaConectar ( HINSTANCE hInstance );
extern int Desconectar ();
extern void EnviaObjetosGrupo ( DWORD dwGrupo );
extern HRESULT SendGeneralMessage( DWORD dwTipo, DWORD dwComprimento, void* pvMsg );
extern HRESULT SendChatMessage(HWND hWnd, LPDPLAYINFO lpDPInfo);
