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 [...] read more
I am trying to use C++/WinRT to write something interesting. Having very little experience in Windows programming and no experience in C++/CX, I started out by trying sample program (OCR). The sample program is about optical character recognition, I modified it to be face detector (console-based). It worked very well. [...] read more
I have a WPF desktop app and I want to use the UWP FolderPicker API to pick a directory. My app uses the UWP packaging project so it is built and ran as an appx. I've added in the Windows and WindowsBase references and my project builds and runs. However [...] read more
I have created an UWP app with out-of-process background task following this link out of process background task This is My Background Task namespace MyTask { public sealed class FirstTask : IBackgroundTask { private BackgroundTaskDeferral backgroundTaskDeferral; public void Run(IBackgroundTaskInstance taskInstance) { DefaultLaunch(); } async void DefaultLaunch() { // The URI [...] read more
when attempting to replace an AxWebBrowserwith WebView2 in an old winform form i get an "invalid window handle 0x80070578" exception. at first it was due to an older version of Edge but after dating to Canary it was working fine in a standalone project. async void InitializeAsync() { await webView.EnsureCoreWebView2Async(null); [...] read more
I am trying to generate a CSR from a smartcard using the CertEnroll::CX509CertificateRequestPkcs10 library. It works fine if I just run it at the beginning. However if I run the ADAL login flow before hand I get the following error. > CertEnroll::CX509CertificateRequestPkcs10::Encode: Invalid window handle. > 0x80070578 (WIN32: 1400 ERROR_INVALID_WINDOW_HANDLE) [...] read more
My file, located at 'C:/Users/Username/Desktop/sample.pdf' is there. I can open it manually and it loads fine. Now if I put an invalid link, such as, file:///sample.pdf, which clearly can't be found, the Hololens app will open the Edge browser attempting to open the pdf. So, it's clear the code is [...] read more
Environment: SBS Server 2008 DC/ Domain Server: Windows Server 2008 FE * Microsoft Windows Server Update Services 3.0 SP1 - MMC SUSDB.MDF started at 14.x GB and when trying to use the Updates Cleanup options {will link more detail from an article we found to do that}, it would go [...] read more