You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Offer option to generate IntPtr input parameters instead of COM interfaces #669
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.
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.
Activity
jevansaks commentedon Nov 22, 2025
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.