Returns True if FileName matches given Mask with optional case sensitivity.
function MatchFileNameMask(const FileName: string; const Mask: string; CaseSensitive: Boolean = False): Boolean;
ImagingUtility (at line 142)
Mask can contain ? and * special characters: ? matches one character, * matches zero or more characters.