https://social.microsoft.com/Forums/Azure/en-US/c617cba3-6748-4975-b88d-d07ad7d79112/winhttp-future?forum=windowsgeneraldevelopmentissues&prof=required
An incorrect answer by a user who probably has no idea what he is talking about, is marked as answer!
Also why do you respondents assume users can't browse through the documentation?
I had to figure this out after sifting through the documentation and samples.
Here is the answer: WinHTTP cannot be used as Server code. It can be used in client application only. We cannot create our own HTTPS server with underlying WinHTTP usage.