microsoft / Windows.UI.Composition-Win32-Samples

Windows.UI.Composition Win32 Samples
MIT License
459 stars 186 forks source link

ScreenCaptureforHWND CreateForWindow return 0x80004005 #136

Open with38 opened 3 weeks ago

with38 commented 3 weeks ago

ENV: winsdk:10.0.26100.0 win-version:WIN10-21H2-19043.1081

This computer appears every time, other computers don't. Is it an environmental issue? The error code is not specified and I don't know where the problem is. How can I solve it?

1724382793137

robmikh commented 3 weeks ago

What window are you trying to capture?

Generally, only windows that show up in the Alt+Tab view will work with that API. You also must have explorer running.

with38 commented 2 weeks ago

What window are you trying to capture?

Generally, only windows that show up in the Alt+Tab view will work with that API. You also must have explorer running.

The window to be captured is created through this link([https://github.com/Mzying2001/CefFlashBrowser/tree/master/CefFlashBrowser.FlashBrowser]) and is a browser.This style of window: 1724642641540

Can be displayed on Alt+Tap view and explorer running.It can be captured on other computers(WIN10-22H2-19045.2728)