title: .NET or Win32 Equivalent of "netsh http add urlacl" command
body: <p>There are <a href="https://stackoverflow.com/questions/1697716/exposing-wcf-services-via-http-when-not-hosted-in-iis">several</a> <a href="https://stackoverflow.com/questions/2521950/wcf-selfhosted-service-installer-class-and-netsh">questions</a> around how to allow a self-hosted WCF application to use BasicHttpBinding with HTTP.SYS without requiring administrative privileges.  It boils down to needing to grant permission (from an admin context) to the URL, then the user can host whatever at the specified URL.</p>
  
  <p><em>netsh http add urlacl url=<a href="http://+:80/MyService_" rel="nofollow noreferrer">http://+:80/MyService</em></a></p>
  
  <p>I would like to be able to query and add registered URLs without resorting to parsing commandline output of the "netsh" or "httpconfig" commandline tools.</p>
  
  <p><strong>Is there is a public Win32 or .NET API that I can call for this functionality?</strong></p>