Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void tryURL()
- {
- randURL.clear();
- for (unsigned short i = 0; i < urlLength; i++) {
- randURL = randURL + (alphabet[(int)((double)rand() / (RAND_MAX + 1) * alphabetLength)]);
- }
- wcout << randURL << endl;
- HRESULT getImg = URLDownloadToFile(NULL, LPCWSTR( (beginURL + randURL + endURL).c_str() ), LPCWSTR( (randURL + L"/" + endURL).c_str() ), 0, NULL);
- if (SUCCEEDED(getImg))
- {
- wcout << L"Success" << endl;
- }
- }
- tryURL();
- 0ybOAt
- tryURL();
- lTPKaR
- tryURL();
- Ivi05m
- ...
- thread threads[10];
- for (int i = 0; i < 10; ++i) {
- threads[i] = thread(tryURL);
- }
- for (int i = 0; i < 10; ++i) {
- threads[i].join();
- }
- 0ybOAt0ybOAt
- 0ybOAt
- 0ybOAt0ybOAt
- 0ybOAt
- 0ybOAt0ybOAt
- 0ybOAt
- 0ybOAt
Add Comment
Please, Sign In to add comment