I am using
CmtScheduleThreadPoolFunction(DEFAULT_THREAD_POOL_HANDLE,
Function, (void *) &FunctionData,NULL);
to create a thread for an action. i have a stop button in my GUI wherein i want to give the option to the user to abort a test at any time. How do i program this, how do i termiate this thread .i tried a few option with Cmtdiscard, CmtExitThreadPool . it was not working. Kindly help me with this one.