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
In the effort to start using CsWin32 (#7445), there may be APIs we'd like changed or added in cswin32 due to missing typedefs, conveniency, etc. This is a tracking issue to help keep a list of these adds/changes we would like.
Just to explain what I have been doing. I have been using ILSpy to check the win32metadata for everything in each of the interop folders. I am doing this so win32metadata is ahead of the winforms team on any differences, making the conversion easier. I am working bottom to top.
I am creating the issues first and then I will submit PRs based on feedback in the issues. This way the team has known progress to reduce project risk.
I know it sounds a bit silly, but I can't remember if I compared user32 to Win32Metadata. So I just have these to compare and raise issues:
Ole32
ComCtl32
User32
I should be able to look into it later this week. After that, I will begin work on the PRs.
For the issues already raised in win32metadata some of them might not be valid. So if the team could verify them, that would be great. It will help reduce any wasted time on PRs that won't be merged.
For the issues already raised in win32metadata some of them might not be valid.
Could you clarify what you mean when you say that they might not be valid?
I have done my best to find where the signatures of methods don't match. In some instances like NTSTATUS, an enum was turned down for static fields instead.
I expect the win32metadata team might turn down a few others.
The biggest problem winforms will face is the messaging constants. Metadata doesn't group them into enums. Which makes it harder for winforms to consume them. There is a lot to be said for constants though. Since if you only use two of them, then you just import two of them via CsWin32. So the amount of generated code is less.
Activity
[-]CsWin32 Signature Change Requests[/-][+]CsWin32 Method Signature Change Requests[/+][-]CsWin32 Method Signature Change Requests[/-][+][Tracking] CsWin32 Method Signature Change Requests[/+][-][Tracking] CsWin32 Method Signature Change Requests[/-][+][Tracking] CsWin32 API Change/Add Requests[/+]elachlan commentedon Aug 5, 2022
This would be helpful for
SHAutoCompletemethod.microsoft/win32metadata#1027
elachlan commentedon Aug 5, 2022
This is blocking
ImmGetConversionStatus:microsoft/win32metadata#1028
elachlan commentedon Aug 21, 2022
Just to explain what I have been doing. I have been using ILSpy to check the win32metadata for everything in each of the interop folders. I am doing this so win32metadata is ahead of the winforms team on any differences, making the conversion easier. I am working bottom to top.
I am creating the issues first and then I will submit PRs based on feedback in the issues. This way the team has known progress to reduce project risk.
Anyone else wanting to do this is welcome. You can find steps in https://github.com/microsoft/win32metadata/blob/main/CONTRIBUTING.md
elachlan commentedon Aug 21, 2022
Remaining Interop folders to check:
Imm32Gdi32Comdlg32elachlan commentedon Aug 21, 2022
What do we do with the following interop libraries?
lonitra commentedon Aug 22, 2022
Looping in @JeremyKuhne for further thoughts on this when he's back. For now, we'll proceed with conversions for the other folders.
elachlan commentedon Aug 22, 2022
I know it sounds a bit silly, but I can't remember if I compared user32 to Win32Metadata. So I just have these to compare and raise issues:
I should be able to look into it later this week. After that, I will begin work on the PRs.
For the issues already raised in win32metadata some of them might not be valid. So if the team could verify them, that would be great. It will help reduce any wasted time on PRs that won't be merged.
lonitra commentedon Aug 23, 2022
Could you clarify what you mean when you say that they might not be valid?
elachlan commentedon Aug 23, 2022
I have done my best to find where the signatures of methods don't match. In some instances like NTSTATUS, an enum was turned down for static fields instead.
I expect the win32metadata team might turn down a few others.
RussKie commentedon Aug 24, 2022
Great job @elachlan! Thank you.
elachlan commentedon Aug 25, 2022
Adding win32metadata issues for User32 is "done". I may have missed a few, but we can pick them up when converting.
elachlan commentedon Aug 27, 2022
I am done! I have done my best to make sure I have covered everything, but I may have missed something.
We are going to have difficulties in
ComCtl32because lots of the enums defined in there are not defined in Win32Metadata and might not be added.Ole32has a lot of interface updates. But the conversion doesn't seem as bad.The metadata team and winforms team will need to review and discuss the issues I have linked here.
CC: @sotteson1 and @mikebattista sorry for the issue spam.
mikebattista commentedon Aug 27, 2022
Fortunately most of your issues are just with friendly enums which are easy to add.
elachlan commentedon Aug 28, 2022
The biggest problem winforms will face is the messaging constants. Metadata doesn't group them into enums. Which makes it harder for winforms to consume them. There is a lot to be said for constants though. Since if you only use two of them, then you just import two of them via CsWin32. So the amount of generated code is less.
merriemcgaw commentedon Jul 27, 2023
@JeremyKuhne is there anything pending from windows on this?
JeremyKuhne commentedon Jul 27, 2023
There are still a few open issues, and we are probably missing a couple. We'll do another run through to ensure we have all of the open ones tracked.
JeremyKuhne commentedon Jul 24, 2024
I believe most, if not all of these are complete.