FILESYS_PROC int FILESYS_API CompareMask(CTEXTSTR mask, CTEXTSTR name, int keepcase);
TRUE if name is matched by mask. Otherwise returns FALSE.
The mask support standard 'globbing' characters.
? matches one character
* matches 0 or more characters
otherwise the literal character must match, unless comparing case insensitive, in which case 'A' == 'a' also.
if( CompareMask( "*.exe", "program.exe", FALSE ) )
// then program.exe is matched by the mask.