Skip to content

Direct3D11CaptureFramePool.CreateCaptureSession throws E_ACCESSDENIED on some machines? #107

Description

@23chi

Hello.

I'm doing monitor capture with WGC (C++/WinRT). On my machine it works fine, but on a friend's machine it fails. We are both on Windows 11.

D3D11CreateDevice → OK
CreateDirect3D11DeviceFromDXGIDevice → OK
IGraphicsCaptureItemInterop::CreateForMonitor(hMon, ...) → OK
Direct3D11CaptureFramePool::CreateFreeThreaded(device, B8G8R8A8UIntNormalized, 2, size) → OK
framePool.CreateCaptureSession(item) → throws E_ACCESSDENIED (0x80070005)

GraphicsCaptureSession::IsSupported() returns true on the failing machines. The HRESULT is the only signal I get, and i'm not sure where to go from there.

What are the possible causes of E_ACCESSDENIED here?

Appreciate any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions