it may be that the handle (from createfile) is never "freed".
i would add a closehandle at the end of each function :_WinAPI_CloseHandle($hFile)
that may fix this issue as one should normally always close a previous opened handle.
if not, i'll test it all in one function.
EDIT : i will edit/fix the previous posts.
Everything working now OK also when Functions are combined
Thanks a lot for your help. I will implement your code in the next version of WOF_Compress.