In UWP, how can I access the thread object? I want to change the name of the main thread and additional thread that I will manage.
I also want to check if the current thread is the main thread afterwards.
I'm targeting to windows 10 mobile. The following code example works for desktop, but not for phone (getting 'System.DllNotFoundException'):
[DllImport("kernel32.dll")]
static extern IntPtr GetCurrentThread();
Thanks.