Changed fopen to CreateFile for unc path and sharing