IIS API only standardizes access to IIS XML configuration, which ASP.NET Core module or HttpPlatformHandler v2 relies on https://github.com/lextudio/httpplatformhandlerv2/blob/httpplatformhandler_v8.0.3-rc.2/src/Servers/IIS/AspNetCoreModuleV2/IISLib/ahutil.h
If you can follow the same convention to define parameters of your module, then you reuse the same code.
If you, however, want to use your own config file, .txt
or .ini
, then this question has little to do with IIS, but general Windows C/C++ programming. You might use the standard C/C++ file IO API to read files at will, but of course must pay attention to the actual user account that executes your code to ensure file access permissions are granted.