what is the issue you are observing?
I"ve tested the tool on both Win7 & Win11 (24H2), no issues seen so far so good.
https://ibb.co/w6MdnDt
my updates are included over here https://workupload.com/file/dyMPqZYgZqM
fixed handles leak,
introduced one macro that simplifies reading of the code (IMHO)
PS the only thing left that I thinking about - support of std::wstring for exceptions throwing, but it turned out std::exception does not like wstring, so not that easy