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

[IMPL] Added MiniDumpWriteDump and MINIDUMP_TYPE manually. #399

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AraHaan
Copy link

@AraHaan AraHaan commented Sep 4, 2024

For some reason the ClangSharpPInvokeGenerator tool skips MiniDumpWriteDump and the MINIDUMP_TYPE enum so for now add them back manually until dotnet/ClangSharp#571 is fixed.

Also this maps the last 3 parameters to the function to void* pointers to make the application developer responsible for providing the types to pass in to them if they want to provide them, otherwise they can pass null as usual.

implements: #398

Checklist:

  • Add tests.
  • Add docs to these.

For some reason the ClangSharpPInvokeGenerator tool skips MiniDumpWriteDump and the MINIDUMP_TYPE enum so for now add them back manually until dotnet/ClangSharp#571 is fixed.

Also this maps the last 3 parameters to the function to void* pointers to make the application developer responsible for providing the types to pass in to them if they want to provide them, otherwise they can pass null as usual.

Signed-off-by: AraHaan <[email protected]>
Copy link
Member

@tannergooding tannergooding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per dotnet/ClangSharp#571 you need to explicitly handle each header, namely by adding the right files to handle um/mionidumpset.h here: https://github.com/terrafx/terrafx.interop.windows/tree/main/generation/Windows/um

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants