Skip to content

Does IDXGIOutput5::DuplicateOutput1() take enum DXGI_OUTDUPL_FLAG in the Flags parameter? #128

@MarijnS95

Description

@MarijnS95

We were investigating where enum DXGI_OUTDUPL_FLAG could be used (with its only known valid flag value DXGI_OUTDUPL_COMPOSITED_UI_CAPTURE_ONLY = 1), or if it was an accidental unused remnant.

@riverar apparently reverse-engineered an example and confirmed my initial hunch that this value is used for Flags in IDXGIOutput5::DuplicateOutput1(). The documentation still suggests that the Flags value "must be zero" however.

Can anyone clear up whether this is true, and if so:

  • Update the documentation;
  • Maybe change the parameter type to directly take DXGI_OUTDUPL_FLAG, so that we don't have to hack this in win32metadata via [AssociatedEnum]?

After all DXGI_OUTDUPL_FLAG is an untyped enum which is assumed to be INT by default, mismatching the UINT ABI of the Flags parameter.


Note also that I'm trying to propagate this flag usage into win32metadata already via microsoft/win32metadata#1911.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions