Here's my problem:
I have an unmanaged dll that I made.I'm calling one of this dll's functions in my C# code, using PInvoke.
Under certain conditions, in the dll function, I want to be able to terminate the thread that is running the function.How would I achieve that?

Sorry if it is a stupid question, but I'm a total noob when it comes to threading:)