now using W methods for windows (Unicode)