A very dirty and dangerous trick

/**
 * NOTE! This is very dirty and dangerous trick. I spend
 * several hours on thinking and man pages browsing,
 * but couldn’t find better solution.
 * I know that I will spend 666 years in the Computer Hell
 * for writing this hack, and the master devil (Billy Boy)
 * will send me to write Windowz software.
 */

The documented way

// The documented way of returning a multi selection when
// the result buffer is to small doesn't work. Well...
// At least, I can't get it working...
// Pick up the information directly from the selection-
// dialog and return it in the same format as it is
// documented. I HATE WINDOWS! BILL GATES GO TO HM-HM!!!!