https://en.delphipraxis.net/topic/15232-delphi-winmd-parser-code-generator/I'm highlighting this article, which links to a repo where a project for defining the Windows API from WINMD to Pascal is published.
The project is for Delphi, but it should obviously be possible to port it to Lazarus/FPC for those interested.
The release also includes wrappers updated to March 21st.
The wrappers are also Delphi-style, but I believe they can also be used in FPC.
.... for those developing on Windows

...