“Invalid window handle” error when using FileOpenPicker from C# .net framwork 4.7.2 with Microsoft.Windows.SDK.Contracts without UWP
问题 I am trying to use Microsoft.Windows.SDK.Contracts to access the Windows10 API from .net framework WFP application. I want to use the FileOpenPicker() to select the image for OCR processing by Windows.Media.Ocr. But I met the 'Invalid window handle' error when using the picker I found a post which met the similar a link issue with C++/WinRT. One of the answer point out " The program will crash because the FileOpenPicker looks for a CoreWindow on the current thread to serve as the owner of