On Metro are there equivalent functions to the Win32 function TerminateThread ?


  • Hello, Dear all,

    I'm porting a legacy Win32 framework to Metro. In the program TerminateThread is used to terminate a thread when needed. On Metro, I could create asynchronous operations with Windows.System.Threading or PPL, but for cancellation, we need to manually check whether the current task/work has received a "cancel command" then we could return from the execution.

    There has been some discussions such as http://social.msdn.microsoft.com/Forums/sv-SE/winappswithnativecode/thread/e6d5e2a7-b05c-4552-a8c4-c57b0d1b55d6.

    Could anybody give me some advice? Thank you very much.

    Thursday, January 24, 2013 3:53 AM