Force close file by its path on Windows
问题 I'm writing a temporary file manager for other developers. I want to remove files even our console applications crashes or being closed by "X" button. So far I found std::set_terminate , std::atexit and SetConsoleCtrlHandler methods with which I can delete all temporary files I need. Problem is - I can't delete opened files. Furthermore - I cant control streams to those files, cause developers using several libraries (GDAL for example) which uses their own stream mechanisms and can accept