Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
/*
** Command & Conquer Generals(tm)
** Copyright 2025 Electronic Arts Inc.
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
////////////////////////////////////////////////////////////////////////////////
// //
// (c) 2001-2003 Electronic Arts Inc. //
// //
////////////////////////////////////////////////////////////////////////////////
// FILE: GameSpyChat.h //////////////////////////////////////////////////////
// Generals GameSpy Chat
// Author: Matthew D. Campbell, February 2002
#pragma once
#ifndef __GAMESPYCHAT_H__
#define __GAMESPYCHAT_H__
#include "GameSpy/Peer/Peer.h"
class GameWindow;
class WindowLayout;
Bool GameSpySendChat(UnicodeString message, Bool isEmote, GameWindow *playerListbox = NULL);
void GameSpyAddText( UnicodeString message, GameSpyColors color = GSCOLOR_DEFAULT );
extern GameWindow *progressTextWindow; ///< Text box on the progress screen
extern GameWindow *quickmatchTextWindow; ///< Text box on the quickmatch screen
extern GameWindow *quickmatchTextWindow; ///< Text box on the quickmatch screen
extern GameWindow *listboxLobbyChat; ///< Chat box on the custom lobby screen
extern GameWindow *listboxLobbyPlayers; ///< Player box on the custom lobby screen
extern GameWindow *listboxLobbyGames; ///< Game box on the custom lobby screen
extern GameWindow *listboxLobbyChatChannels; ///< Chat channel box on the custom lobby screen
extern GameWindow *listboxGameSetupChat; ///< Chat box on the custom game setup screen
extern WindowLayout *WOLMapSelectLayout; ///< Map selection overlay
void RoomMessageCallback(PEER peer, RoomType roomType,
const char * nick, const char * message,
MessageType messageType, void * param); ///< Called when a message arrives in a room.
void PlayerMessageCallback(PEER peer, const char * nick,
const char * message, MessageType messageType,
void * param); ///< Called when a private message is received from another player.
#endif // __GAMESPYCHAT_H__