Seems to me there is a bug in TROHttpAPIContext.SendResponse, compiled in 64bits.
Server can start, but before it can respond, the exception “The parameter is incorrect” raises on HttpCheck(HttpAPI.SendHttpResponse(fOwner.fReqQueueHandle,fRequestId,0,@lResponse,nil,pBytesSent)); line.
In this thread, http://technet.microsoft.com/eS-es/library/aa364499.aspx, there is some interesting post: “Even though the documentation doesn’t mention this, all of the pointers inside of both HTTP_RESPONSE and HTTP_LOG_FIELDS_DATA need to be pointer aligned - that is, aligned to 4 byte boundaries on 32bit machines and aligned to 8 byte boundaries on 64bit machines. Failure to due so will cause a return value of ERROR_INVALID_PARAMETER.”