Does anyone knows how to know if a string is a valid Windows long file name?

In other words, I need to know which ascii values out of the the (255) ASCII code characers are valid in a windows long filename.