CoreWindow::GetForCurrentThread() documented as a return:
CoreWindow for the current active thread.
If you call this function from a thread that does not have CoreWindow (for example, any thread other than the UI), then this function will return nullptr .
Assuming the application has completed initialization, and there is a view, you can use the dispatcher from the main view of the application through CoreApplication::MainView , you can pass Dispatcher^ for the user interface thread to code that runs in a non-UI thread, so that he had access to it when he needed to return to the user interface thread.
James McNellis Jan 24 '13 at 16:04 2013-01-24 16:04
source share