I hope this is the right place and I'm sorry if its not. I am trying to use the http.sys subsystem to report status of a windows service. The service launches a thread to accept http GET requests and reponds with an XML document containing the status. Anyway, the issue is that when I link the thread code into a test app it works just fine - when I link it into the windows service HttpSendHttpResponse() always returns ERROR_NO_SYSTEM_RESOURCES. The behavior is the same on Window 2003 and XP. Anybody seen this before? The code is very similar to the sample app at http://msdn2.microsoft.com/en-us/library/aa364640.aspx. Thanks.