I need to access macOS API calls from the C programming language rather than via Swift or Objective-C. A comparison to a Windows environment would be that on Windows, I can access calls like CreateFile()
, HeapAlloc()
, WriteProcessMemory()
, VirtualAlloc()
and etc... By simply #include <windows.h>
How can I do something similar on macOS Sierra or High Sierra? Note that I do not need to create a GUI application. I only need to access some low-level functions similar to the Windows API.
Thank you.