unc: use Windows API to handle shares
Using the wide char API allows handling pathes with non ANSI characters.
Using the native Windows API allows retrieving just the flags we want.
This should work in UWP apart from the network connection with the credentials.
Ref. #29076