#include <Windows.h>
#include <iostream>
#include <sstream>
#define N 0x3c
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdArgs, int nShowCmd) {
auto time{ 0 };
std::cout << "Kac dakika sonra kapatilsin? ";
std::cin >> time;
std::stringstream ss;
ss << "shutdown -s -t " << std::to_string(time * N);
system(ss.str().c_str());
return MessageBox(NULL, "Merhaba", "Pencere adi", MB_OK | MB_ICONSTOP);
}