Name
WaitWithoutResults
Description
HRESULT
WaitWithoutResults([out,retval] ULONGLONG* error);
Wait for a particular job to complete, without checking any of
the properties of that job.
Parameters
- error
-
The error resulting from the asynchronous operation that returned
the job handle.
Return Value
HRESULT
Remarks
- This function blocks until the job completes.
- The error code returned by this function is the same as the error code
returned by Job::GetError().
- The error code returned by this function is also available in the
VIX_JOB_RESULT_ERROR_CODE property of the job object.
- Do not use WaitWithoutResults() to complete a job for which you have passed an
ICallback instance. The completion order in such a situation is undefined,
and you cannot rely on the resulting property values.
Side Effects
None.
Requirements
VixCOM.h, since VMware Workstation 6.0.
Example
Dim job
Dim err
' Power on the virtual machine in headless mode.
Set job = vm.PowerOn(VixCOM.Constants.VIX_POWEROP_NORMAL, Nothing, Nothing)
err = job.WaitWithoutResults()