Does anyone know the specification for how UrlAcl data is stored in the registry? I know I can find the values at HKLM\System\CurrentControlSet\services\HTTP\Parameters\UrlAclInfo. Each value name is the actual URL being registered, however, the rest of the actual data is in binary. I need to be able to get the user name the urlacl was registered to. Does anyone know where I can find how to parse the binary data to get the information I need?
Thanks!
An alternative would be to have your program run
netsh http show urlacl, redirect the output, and then parse it. See Redirecting console output to another application for an example.Ideally, you’d be able to access the information from the Windows API. I know that at one point the API in question was “unpublished.” I don’t know if it’s been documented by now.
Update: Perhaps HttpQueryServiceConfiguration is what you’re looking for? There are several C# wrappers for the HttpApi functions. Search for [httpapi C#]. I don’t know if any of them will do what you want, but they look promising.
According to the docs, HttpApi is available for Windows XP with SP2, Windows Server 2003, and all later releases.