extern "C" DWORD cygwin_internal (cygwin_getinfo_types t, ...);
This function gives you access to various internal data and functions. Stay away unless you know what you’re doing.