Searching Workgroup Vault

Is it possible to write a program that searches the vault for multiple files in one search?  Kind a like using the advance search through the UI.  Problem is, I will never know how many files I have to search for.  Could be one, five or twenty?

SolidworksApi macros