Initiate Mage
- Joined
- Jul 30, 2017
- Messages
- 4
- Reaction score
- 9
RSUpdate
Search
Add Below
Search
Add Below
Search
Look
Search
Code:
void startGame(const char* param)
Add Below
Code:
static const char alphanum[] = "abcdefghijklmnopqrstuvwxyz"int stringLength0111 = sizeof(alphanum) - 1;char genRandom011(){ return alphanum[rand() % stringLength0111];}
Search
Code:
char GAME_START_PARAM[2048];
Add Below
Code:
srand(time(0)); std::string Str, lastname, newname; const char * LASTNAME, * NEWNAME; for(unsigned int i = 0; i < 10; ++i) { Str += genRandom011(); } lastname = "[B][COLOR=#ff0000]MyGame.exe[/COLOR][/B]"; newname = Str + ".exe"; LASTNAME = lastname.c_str(); NEWNAME = newname.c_str(); rename(LASTNAME, NEWNAME);
Search
Code:
// we don't need to elevate permission here
Look
Code:
int err = (int)ShellExecute(NULL,
To put this over
int err = (int)ShellExecute(NULL, "open", NEWNAME, GAME_START_PARAM, NULL, SW_SHOW);