Win32 API is Huge
- Posted by Icy_Viking in May
- 442 views
Hi all,
Recently I have thought of making a new Win32lib, if you will. Something that would wrap more modern windows functions and wrap other windows related things such as DirectX and more. However, the Win API is huge.
https://learn.microsoft.com/en-us/windows/win32/api/
There are a lot of modules. Wrapping the complete API would be a massive undertaking. I don't think one person could do it. Although I wouldn't mind starting it. Using Greg's FFI Euphoria library would make it easier to wrap the structs and such. Then there are the typedef Windows variable such as LHANDLE and HBRUSH, which I'm not sure would be C_POINTER or C_LONG, or something else?
I have looked through the win32lib that was originally developed by David Cuny and later Derek P. Massive kudos to those guys. I guess it could be theoretically possible to build upon the win32lib by using the FFI library and making the required changes, though I feel a fresh apporach may be the best option, seeing how much Windows has changed and the new API features that modern Windows has. Thoughts, opinions and takes are welcome.