Anyone have some working code that terminates a thread using TerminateThread win32api?

To work I think it needs openThread api too. I am after some code that uses both api functions in VB to terminate a thread