What is the difference between CreateThread and beginthread APIs in Windows? Which one is preferrable for thread creation?