can anyone please send me full VB example of handeling multithreading when writing to file.

i know that i have to use the create mutex release mutex and WaitForSingleObject
API Functions

thanks