Hi guys, I've planning to add game guard to the client. The game guard needs to be run first after patching.
I have not tested this yet, I just want to be sure, and change the line to and I thinking of changing this part to
Also I want to check if the gameguard size is equal to my desired size, then if the gameguard has been close then also close the neuz.exe
Code:
void CPatchClientApp::RunClient(){ PROCESS_INFORMATION pi; STARTUPINFO si; memset( &si, 0, sizeof( STARTUPINFO ) ); si.cb = sizeof( STARTUPINFO ); TCHAR szBuffer[2048]; int nCount = _snprintf( szBuffer, 2047, "Neuz.exe %s", "sunkist" ); if( nCount <= 0 ) return; if( CreateProcess( NULL, szBuffer, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ) ) { if( AfxGetMainWnd() ) AfxGetMainWnd()->PostMessage( WM_CLOSE ); } else { char szError[256]; wsprintf( szError, "ErrorNumber: %d Neuz.exe Run Error", GetLastError() ); AfxMessageBox( szError ); } }
Code:
int nCount = _snprintf( szBuffer, 2047, "GameGUard.exe %s", "sunkist" );