Set the fYeild member of the CAPTUREPARMS structure to 1. This will run the capture window in separate thread.