Вот мой код:
Код: Выделить всё
#include "pch.h"
#include "explorer.h"
#include "getpaths.h"
#include "shortcut.h"
#include
#include
#include
#include
#include
#pragma comment(lib, "wininet.lib")
using namespace std;
using F = void(); // function type
void CallData(void* data) {
F* f = reinterpret_cast(data);
f();
}
int main() {
HINTERNET hInternet = InternetOpen(L"WinINet", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
if (!hInternet) {
cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/78507592/does-this-program-not-work-because-of-memory-protection[/url]
Мобильная версия