odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.1k stars 550 forks source link

[core/windows]: Bind tlhelp.h functions from kernel32.dll #3838

Closed flysand7 closed 2 days ago

flysand7 commented 2 days ago

This PR implements bindings for ToolHelp32 API (part of kernel32.dll) on windows that is provided via tlhelp.h header. The documentation to the API can be found here: https://learn.microsoft.com/en-us/windows/win32/api/tlhelp32/

Some of these functions may be needed to implement some of os2 functionality related to enumerating processes.