問題はそこじゃねーな
なんだこれ
std::cout << ::PathMatchSpecW(L"検査", L"検査");
std::cout << ::PathMatchSpecW(L"対応", L"対応");