Need to update thread function to include WINAPI define.