TOOLHELP.DLL includes four functions you can use to control process execution: TaskGetCSIP, TaskSetCSIP, TaskSwitch, and TerminateApp. These functions are designed for use exclusively in Windows-hosted debuggers.
When an inactive task is activated, it begins execution at the location specified by its CS:IP value. The TaskSetCSIP function sets this value, and the TaskGetCSIP function returns the value.
The TaskSwitch function activates a specific task beginning at a specified CS:IP value.
The TerminateApp function terminates an application as if a general protection (GP) fault had occurred.