Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect triple pointer for MFEnumDeviceSources #1257

Open
diontools opened this issue Aug 12, 2024 · 0 comments
Open

Incorrect triple pointer for MFEnumDeviceSources #1257

diontools opened this issue Aug 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@diontools
Copy link

diontools commented Aug 12, 2024

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

@diontools diontools added the bug Something isn't working label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant