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

Use win32metadata for calling win32 apis from c# #9242

Open
martinchrzan opened this issue Jan 22, 2021 · 5 comments
Open

Use win32metadata for calling win32 apis from c# #9242

martinchrzan opened this issue Jan 22, 2021 · 5 comments
Labels
Area-Quality Stability, Performance, Etc.

Comments

@martinchrzan
Copy link
Contributor

Multiple PT c# projects are using win32 apis by manualy defining its wrappers.

Win32metadata project provides generation of win32 api wrappers for c# without a need for manually maintaining files with dllimport functions signatures, which are error prone.

More details can be found here:

https://blogs.windows.com/windowsdeveloper/2021/01/21/making-win32-apis-more-accessible-to-more-languages/

https://github.com/microsoft/win32metadata

@martinchrzan martinchrzan added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Jan 22, 2021
@enricogior enricogior added the Area-Quality Stability, Performance, Etc. label Jan 22, 2021
@htcfreek
Copy link
Collaborator

Sounds interesting. But do we add a source for failures of we use this?

@crutkas crutkas added Help Wanted We encourage anyone to jump in on these and submit a PR. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jan 28, 2021
@royvou
Copy link
Contributor

royvou commented Apr 29, 2021

It looked like an interesting PR to pickup but while working (checking how it all works) on it the tooling/packages don't 'feel' ready to be implemented.
I think the following prerequisites are needed for this PR (at this moment).

Otherwise there are still a few nice to haves 'issues'/PRS open within that repo :)

Should we also wait until a RC/'Official' release is provided? Currently they all have the 'Beta' flag.
Install-Package Microsoft.Windows.CsWin32 -Version 0.1.422-beta

Still think its a great task to have on the backlog, just not for now.

@enricogior
Copy link
Contributor

enricogior commented Apr 29, 2021

@royvou
thank you for looking into this one, but we don't really need it right now, the team is focused to bring stability and adding more dependencies is not something that will help.

@royvou
Copy link
Contributor

royvou commented Apr 29, 2021

I just wanted to add that information because it has the "Help Wanted" tag :)
So if someone thinks "I want to pickup something with the 'help wanted' tag, they should prefer another task over this one .

@enricogior
Copy link
Contributor

@royvou
thanks again for looking into this ;)

@enricogior enricogior removed the Help Wanted We encourage anyone to jump in on these and submit a PR. label Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Quality Stability, Performance, Etc.
Projects
Status: No status
Development

No branches or pull requests

5 participants