Hi Niya,

Thanks fer answer.

I need to upload in real time.
Each time a file is placed in the folder, I have to upload this file to my webserver.
I use WndProc to trigger my upload.

When a file is placed on the backup directory, immediatly, my application receive a message via the WndProc.
From WndProc I call my function (AutoUpload).

And sometimes I receive 3 or more messages (3 files or more in the backup directory) in few seconds.
I can not upload all files at the same time. Only 1 by 1. How to do. I think I have to declare a queue or something like that. (enqueue, dequeue)
But I don't know exactly how to do the nexts steps with the threads.

Isa