This wont work... It only hides the MessageBox from the game, but the server will still do the process of closing the game, you need to modify the packets you send to the server so it wont close the game.
What is IngameMsgDWORD MsgBoxCall = CShell + IngameMsg;
is a Addy or Not