Look at the CreateThread API