Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DuplicateOutput 报错,为什么会这样? #45

Open
qq978358810 opened this issue Apr 28, 2024 · 0 comments
Open

DuplicateOutput 报错,为什么会这样? #45

qq978358810 opened this issue Apr 28, 2024 · 0 comments

Comments

@qq978358810
Copy link

hr = dxgiOutput1->DuplicateOutput(d3d11_device_.Get(), dxgi_output_duplication_.GetAddressOf());

std::cout<<(int)hr<<std::endl;
if (FAILED(hr)) {
    /* 0x887a0004: NVIDIA控制面板-->全局设置--首选图形处理器(自动选择) */
    printf("[DXGIScreenCapture] Failed to get duplicate output.\n");
    Destroy();
    return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant