Hello, I'm not sure if what I am trying to do is 'hooking' so let me explain. I have a game server. There is a dll that handles all the data being sent and recv. I want to be able to 'hook'? into that running dll and read the data. Here is a little code from the dll. It's a C# dll.
I want to make my vb.net program read that data in the netClientConnection.AddToSendQueue function. Is that possible in vb.net?
How would I got about grabbing the data from another running dll?
Thank you.
Code:
else if (this.World.\u003205AA.Count >= 8)
{
Debug.Log((object) ("Denying player '" + _name + "': max count reached"));
_netClientConnection.AddToSendQueue((C23AA) new \u0030F3AA("Too many players on the server! Allowed: " + (object) 8));
}
else
{
if (Constants.IS_RELEASE)
{
string str = _name.ToLower();
using (Dictionary<int, EntityPlayer>.Enumerator enumerator = this.World.\u003205AA.GetEnumerator())
{
while (enumerator.MoveNext())
{
if (enumerator.Current.Value.EntityName.ToLower().Equals(str))
{
Debug.Log((object) ("Denying player with duplicate name '" + _name + "'"));
_netClientConnection.AddToSendQueue((C23AA) new \u0030F3AA("Your player name already exits! Please choose another one ('" + _name + "')"));
return;
}
}
}
}
I want to make my vb.net program read that data in the netClientConnection.AddToSendQueue function. Is that possible in vb.net?
How would I got about grabbing the data from another running dll?
Thank you.