Skip to content

Incorrect triple pointer for MFEnumDeviceSources #1257

Open
@diontools

Description

Actual behavior

[DllImport("MF.dll", ExactSpelling = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
internal static extern unsafe winmdroot.Foundation.HRESULT MFEnumDeviceSources(winmdroot.Media.MediaFoundation.IMFAttributes pAttributes, out winmdroot.Media.MediaFoundation.IMFActivate pppSourceActivate, uint* pcSourceActivate);

Expected behavior

out IntPtr* pppSourceActivate

https://learn.microsoft.com/en-us/windows/win32/api/mfidl/nf-mfidl-mfenumdevicesources

Repro steps

  1. NativeMethods.txt content:
MFEnumDeviceSources
  1. NativeMethods.json content (if present):
  1. Any of your own code that should be shared?

Context

  • CsWin32 version: 0.3.106
  • Win32Metadata version (if explicitly set by project):
  • Target Framework: net462
  • LangVersion (if explicitly set by project): 12

Related Issue

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions