My suggestions are the following (unless they're already requested):
- Make the pattern-parameter optional @ ExamineDirectory() . If you don't set the 3rd parameter, a empty string (=equal to *.* should be used)
- Supporting multiple pattern (e. g. *.bmp|*.png|*.jp*g)