Report question

Question: How do I check if a given string is a legal/valid file name under Windows?