There are several questions around how to allow a self-hosted WCF application to use BasicHttpBinding with HTTP.SYS without requiring administrative privileges. It boils do
The Win32 API to use is HttpSetServiceConfiguration.