Skip to content

dxcapi.h header annotations affecting language projections. #9086

Open

Description

Description
A couple of issues in dxcapi.h affect generated metadata for language projections.

Functions/methods return COM interface pointers, but their return parameters are annotated as _Out_ and should be _COM_Outptr_:
DxcCreateInstance/DxcCreateInstance2 - parameter ppv
IDxcCompiler3 - methods Compile and Disassemble parameter ppResult
IDxcContainerReflection - method GetPartReflection parameter ppvObject

IDxcLinker and IDxcResult - methods (RegisterLibrary, GetNumOutputs, GetOutputByIndex, PrimaryOutput) are not marked as STDMETHODCALLTYPE. COM interface methods must use stdcall. This makes no difference on x64, but on x86 they use thiscall.

related: microsoft/windows-rs#5279

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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