i need some code that allows me to use the CreateThread API function to spin off a new thread and run a function. i also need to know how i should properly declasre the function if it has to be different from normal. i also need to know how to close the thread and delete it.