How do you use an array to pass to a function when the function is...

OpenPrinter(String, int [], null /* this is always null)

This function fills the int [] array.

How do I pass an array to the second paramter when i don't know the size so that the function can build up the array???