Support GetPasswdMasked on Windows.