All pastes #840376 Raw Edit

Someone

public cpp v1 · immutable
#840376 ·published 2007-12-31 19:48 UTC
rendered paste body
// gwscreen.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <iostream>#include <stdlib.h>using namespace std;int _tmain(int argc, _TCHAR* argv[]){	cout << "Guild Wars Intro Screensaver Launcher by Lams3k" << endl;	cout << "Trying to launch Guild Wars";	PROCESS_INFORMATION p;	STARTUPINFO si;    ZeroMemory( &si, sizeof(si) );    si.cb = sizeof(si);    ZeroMemory(&p,sizeof(p));	char c[200];	for(int i=0; i<200; i++){c[i]=0;}	c[0]=(char)34;	strcat(c,"E:/Guild Wars/gw.exe");	for(int i=0; i<200; i++){if(c[i]==0){c[i]=(char)34;break;}}	strcat(c," -noui");	if(CreateProcess(0,c,0,0,false,0,0,0,&si,&p)==0)	{		Beep(0x300,100);	}	POINT pp;	GetCursorPos(&pp);		bool exit1=false;	while(!exit1)	{		POINT ppp;		GetCursorPos(&ppp);		if(ppp.x!=pp.x || ppp.y!=pp.y){exit1=true;}	}		TerminateProcess(p.hProcess,0);	CloseHandle( p.hProcess );    CloseHandle( p.hThread );	exit(1);	return 0;}