[Tracking] CsWin32 API Change/Add Requests
See original GitHub issueIn 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.
CombineRgn
method missingRegionType
return type (https://github.com/microsoft/win32metadata/issues/1024)RECT
(https://github.com/microsoft/CsWin32/issues/626)- Implicit converter from
RECT
->Rectangle
Width
andHeight
properties forRECT
- Convenient constructors e.g.
RECT(int left, int top, int right, int bottom)
- Implicit converter from
- SafeHandle usage prevents us from using convenience overloads (https://github.com/microsoft/CsWin32/issues/605)
- Null value has to be explicitly cast to HINSTANCE (https://github.com/microsoft/CsWin32/issues/639)
- Enum type for
GetROP2
/SetROP2
https://github.com/microsoft/win32metadata/issues/1045 - Enum type for
GetTextAlign
/SetTextAlign
https://github.com/microsoft/win32metadata/issues/1036 COLORREF
return type forGetTextColor
,GetBkColor
https://github.com/microsoft/win32metadata/issues/1035SHACF
enum missing https://github.com/microsoft/win32metadata/issues/1027- Enum for IME constants https://github.com/microsoft/win32metadata/issues/1028
- Mapping for
XFORM
>Matrix3x2
- Enum type for
LOGFONTW
members/LF_FACESIZE
https://github.com/microsoft/win32metadata/issues/1060 - UXTheme APIs don’t have an HTHEME struct https://github.com/microsoft/win32metadata/issues/1273
Related:
Issue Analytics
- State:
- Created a year ago
- Comments:16 (15 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Fortunately most of your issues are just with friendly enums which are easy to add.