Skip to content

Offer option to generate IntPtr input parameters instead of COM interfaces #669

Closed as not planned

Description

The NativeMethods.json file allows for useIntPtrForComOutPointers: false, but there is no property to use IntPtr for COM input pointers. This may make it awkward to take a COM object and then pass it right back into another API.

See also: #324 (comment)

Activity

  1. jevansaks commented on Nov 22, 2025

    @jevansaks
    Member

    Now that we support source generated COM and the allowMarshaling=false mode lets you do whatever you want with the pointer parameters, I'm not sure the value of the useIntPtrForComOutPointers (I honestly would like to just get rid of it) and so I don't see a need to do more with trying to allow pointer parameters to be IntPtr.

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

    enhancementpartner

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions