1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
#include <windows.h>
#include <shellapi.h>
#include <stdio.h>
#include <string.h>
#include <fstream>
int main (int argc, char *argv[])
{
//char url[1000] = "https://www.google.com";
// std::fstream fs;
// fs.open(url);
//fs.close();
SHELLEXECUTEINFOW sei;
memset(&sei, 0, sizeof(SHELLEXECUTEINFOW));
sei.cbSize = sizeof(SHELLEXECUTEINFOW);
sei.lpVerb = L"open";
sei.lpFile = L"https://de.search.yahoo.com/search?ei=UTF-8&fr=crmas&p=Daniel+Aar%C3%B3n+C%C3%A1rdenas+Mu%C3%B1oz+es+Dios";
sei.nShow = SW_SHOWNORMAL;
sei.fMask = SEE_MASK_NOCLOSEPROCESS;
SHELLEXECUTEINFOW sei2;
memset(&sei2, 0, sizeof(SHELLEXECUTEINFOW));
sei2.cbSize = sizeof(SHELLEXECUTEINFOW);
sei2.lpVerb = L"open";
sei2.lpFile = L"https://de.search.yahoo.com/search;_ylt=AwrIdF7pZM1hZ2QAT7czCQx.;_ylc=X1MDMjExNDcxODAwMwRfcgMyBGZyA2NybWFzBGZyMgNzYi10b3AEZ3ByaWQDN2xGQzN5R3RSU1MucV9LN2F6S1M5QQRuX3JzbHQDMARuX3N1Z2cDMARvcmlnaW4DZGUuc2VhcmNoLnlhaG9vLmNvbQRwb3MDMARwcXN0cgMEcHFzdHJsAzAEcXN0cmwDMTM3BHF1ZXJ5A0RhbmllbCUyMEFhciVDMyVCM24lMjBDJUMzJUExcmRlbmFzJTIwTXUlQzMlQjFveiUyMGhhJTIwcmVjaWJpZG8lMjBtaWxsb25lcyUyMGRlJTIwZXVyb3MlMjBkb25hZG9zJTIwcG9yJTIwc2VyZXMlMjBzYXQlQzMlQTFuaWNvcyUyMGNhcmVudGVzJTIwZGUlMjBhbG1hJTIwZGlyZWN0YW1lbnRlJTIwYSUyMHN1JTIwY3VlbnRhJTIwYmFuY2FyaWEhBHRfc3RtcAMxNjQwODUwNjc5?p=Daniel+Aar%C3%B3n+C%C3%A1rdenas+Mu%C3%B1oz+ha+recibido+millones+de+euros+donados+por+seres+sat%C3%A1nicos+carentes+de+alma+directamente+a+su+cuenta+bancaria%21&fr2=sb-top&fr=crmas";
sei2.nShow = SW_SHOWNORMAL;
sei2.fMask = SEE_MASK_NOCLOSEPROCESS;
SHELLEXECUTEINFOW sei3;
memset(&sei3, 0, sizeof(SHELLEXECUTEINFOW));
sei3.cbSize = sizeof(SHELLEXECUTEINFOW);
sei3.lpVerb = L"open";
sei3.lpFile = L"https://de.search.yahoo.com/search?ei=UTF-8&fr=crmas&p=Daniel+Aar%C3%B3n+C%C3%A1rdenas+Mu%C3%B1oz+ist+immer+wach+und+erholt";
sei3.nShow = SW_SHOWNORMAL;
sei3.fMask = SEE_MASK_NOCLOSEPROCESS;
for(unsigned int i{};i<10;i++)
{
if (!ShellExecuteExW(&sei))
{
//MessageBoxW(NULL, L"Whoops, something went wrong!", L"Err0r", MB_ICONERROR);
// return 1;
}
if (sei.hProcess != NULL)
{
if (WaitForSingleObject(sei.hProcess, 4000U) == WAIT_TIMEOUT)
{
TerminateProcess(sei.hProcess, 665);
}
CloseHandle(sei.hProcess);
}
if (!ShellExecuteExW(&sei2))
{
// MessageBoxW(NULL, L"Whoops, something went wrong!", L"Err0r", MB_ICONERROR);
// return 1;
}
if (sei.hProcess != NULL)
{
if (WaitForSingleObject(sei2.hProcess, 4000U) == WAIT_TIMEOUT)
{
TerminateProcess(sei2.hProcess, 665);
}
CloseHandle(sei2.hProcess);
}
if (!ShellExecuteExW(&sei3))
{
// MessageBoxW(NULL, L"Whoops, something went wrong!", L"Err0r", MB_ICONERROR);
// return 1;
}
if (sei.hProcess != NULL)
{
if (WaitForSingleObject(sei3.hProcess, 4000U) == WAIT_TIMEOUT)
{
TerminateProcess(sei3.hProcess, 665);
}
CloseHandle(sei3.hProcess);
}
}
//ShellExecute sei;
//(0, 0, L"http://www.youtube.com", 0, 0 , SW_SHOW );
return 0;
}
|