Beginner Thread Questions

Hello,
I have reciently looked into multi-threading as my applications are starting to get more complex. I have a couple of questions about the win32 api and threading.

What is a HANDLE and where is it commonly used?

What does it mean to declare a function as WINAPI?

These are the main questions I have but any other info is appreciated. I've mainly been reading this article from msdn:
http://msdn.microsoft.com/en-us/library/ms810438.aspx
but have looked at other atricles and tutorials but mainly have been reading that one, Thanks in advanced,

enduser000
A "HANDLE" is a void*...so it can point to anything. It's basically the "handle" by which you grab the thread. Idr exactly what WINAPI means, but it basically means you can call the function from the CreateThread(). However, I would suggest using Boost::thread instead of Windows Threads, since Boost::thread has many more options and is platform independent.
Topic archived. No new replies allowed.