My program seems jammed during the call of long Api.
The program reads portions of files from the disk and writes them on Cdrom (with direct cd) through the Api WriteFile , and Createfile
Public Declare Function WriteFile Lib "kernel32"
Public Declare Function CreateFile Lib "kernel32" Alias "CreateFileA"

The size of each file is of 100 [mb].
During the call of the Api, that lasts many minutes, the WHOLE program stops answering and stops repaint the screen. The program came back to respond at the end of the Api-writing operations.
I have tried with doevents, but he doesn't do nothing..
Does anybody know how do it transparent way, without give the impression that the system is jammed?