So I don't have to reinvent the wheel, does anyone have a function (or is there an API function) that checks to see if a given string is a valid Windows filename (which may contain a drive letter and a network or non-network path)? The file need not exist at the time of user entry. This is straight validation of a user-entered string, not using the Common Dialog or any of the file controls.