public static void AcceptMatch()
{
IntPtr Thread = WinAPI.CreateRemoteThread(Memory.Client, (IntPtr)null, IntPtr.Zero, new IntPtr(Form1.O.signatures.dw_AcceptMatch), IntPtr.Zero, 0, (IntPtr)null);
WinAPI.WaitForSingleObject(Thread, 0xFFFFFFFF);
WinAPI.CloseHandle(Thread);
}
public static bool MatchFound()
{
IntPtr CLobbyScreen = MemoryAPI.ReadFromProcess<IntPtr>(Memory.ProcessHandle, Memory.Client + Form1.O.signatures.dw_CLobbyScreen);
if (CLobbyScreen != IntPtr.Zero)
{
int iAccept = Memory.ReadMemory<int>((int)CLobbyScreen + Form1.O.signatures.dw_MatchAccepted);
int iFound = Memory.ReadMemory<int>((int)CLobbyScreen + Form1.O.signatures.dw_MatchFound);
return iAccept == 0 && iFound != 0;
}
else
return false;
}