std::wifstream wif("C:\\cpp\\permission.txt");
if (wif.is_open())
{
wif.imbue(std::locale(std::locale(), new std::codecvt_utf8<wchar_t,0x10ffff, std::consume_header>));
std::wstring wline;
while (std::getline(wif, wline))
{
LPCWSTR wline2 = wline.c_str();
MessageBoxW(FindWindowW(NULL, L"Корзина"), NULL, wline2, MB_YESNO);
}
wif.close();
}