Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <string>
- std::string convert(LPCSTR str) {
- return std::string(str);
- }
- int main(int argc,char** argv) {
- int i = 0;
- for (;;) {
- STARTUPINFO si = {};
- PROCESS_INFORMATION pi = {};
- std::string fname = convert(argv[0]);
- std::string extension(".exe");
- LPSTR s = const_cast<char *>((fname+extension).c_str());
- MessageBox(HWND_DESKTOP,"Lmao","Ayy",MB_OK);
- CreateProcess(s, 0, 0, FALSE, 0, 0, 0, 0, &si, &pi);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement