hi,
i have this Stealth Injector source from internet
so this program is for injecting .dll to an .exe
this program was made by someone to used for cheating in online game
but i need to use this program in my private server game online to tell the game client .exe the server IP, that is stored in a dll file..
the problem is i don't want the player to directly execute this program, but they need to run the game patcher first to do the patch..
so i need to put some secret parameter argument that will block player from direct execute..

i know nothing about c++
i only know that you need to use main(int argc, char *argv[])
i've try to put something like this

Code:
int main(int argc, char* argv[]){
	stringstream sparam;
	string param;
	sparam << argv[1];
	sparam >> param;
	if(argc < 1){
		MessageBox(0, "Do not run this program directly, use the Game Launcher!", "Error", MB_ICONEXCLAMATION);
		close;
	}
	if(param != "somesecretargument"){
		MessageBox(0, "Do not run this program directly, use the Game Launcher!", "Error", MB_ICONEXCLAMATION);
		close;
	}
	return 0;
}
the code works fine but the rest of code won't executed..

i've attached the cpp and header files for you guys to check
source.rar