Hello Angus
thank you very much for your answer - and for all the great work you do.
No, no suggestion about an alternative API - in #6 himitsu just explains why you didn't use the (unit winapi.winsock) gethostname function directly (reason: Minimum supported client Windows 8.1,).
In #3 jaenicke explains how one can find the line of code that causes the debugoutputstring.
This might be something for the microsoft feedback hub. (I am not sure if my inputs ever have been read by m$ - but if Angus from ICS would post... ;-))
Regards
Michael