hostArray = hosts as object[];
    return (IHost) hostArray[0];
}
  </pre>
 <p>
  You have to declare an array of properties that you want the job to produce, start
  a VMWare job and examine the results for the host handle. You can see how cumbersome
  this is! The API was originally designed for C, then extended to COM with a very
  limited object model: a number of interfaces were declared, but no corresponding
  COM classes have been implemented. Also, because the job interface is generic, ther