Waits for the background thread to finish executing before returning control to the client.
PRL_RESULT PrlDisk_WaitForCompletion( const PRL_HANDLE Handle );
PrlDisk.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid argument values.
PRL_ERR_SUCCESS - function completed successfully.
Use this function with any of the PHT_VIRTUAL_DISK disk functions that can be executed asynchronously. When a function is called asynchronously, it returns immediately. The actual task that was initiated by the call is performed in the background thread. By calling the PrlDisk_WaitForCompletion function, you will suspend the main thread execution until the background thread is finished processing the task.