Windows error 0x80070578, -2147023496

Detailed Error Information

INVALID_WINDOW_HANDLE[1]

MessageInvalid window handle.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code1400 (0x0578)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x00000578.

Questions

5votes
1answer

“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 [...] read more
c#
wpf
winforms
fileopenpicker
3votes
0answers

"Invalid window handle" error when using FileOpenPicker from C++/WinRT without UWP

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
c++
visual-c++
windows-runtime
visual-studio-2017
1vote
2answers

How to use UWP FolderPicker in a WPF c# desktop app

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
c#
wpf
uwp
desktop-bridge
1vote
1answer

Launch an UWP app from Background Task

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
c#
uwp
0votes
1answer

EnsureCoreWebView2Async "invalid window handle" exception in Winform

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
c#
winforms
webview2
0votes
1answer

(WIN32: 1400 ERROR_INVALID_WINDOW_HANDLE) while Signing a CSR with a SmartCard

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
c#
certificate
smartcard
certenroll
0votes
1answer

URI correct but incorrect at run-time?

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
c#
uwp
windows-runtime
uri
hololens
-1votes
1answer

Fix WSUS related DB bloating, Uninstall & Install issues on SBS Server 2008?

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
installation
database
wsus
windows-sbs-2008
uninstall

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0