IWSDServiceMessaging::SendResponse method (wsdhost.h)
Sends a response message matching a given request context. This method should be called only from generated code.
Syntax
HRESULT SendResponse(
[in] void *pBody,
[in] WSD_OPERATION *pOperation,
[in] IWSDMessageParameters *pMessageParameters
);
Parameters
[in] pBody
Pointer to the message body to send in the response message.
[in] pOperation
Pointer to a WSD_OPERATION structure that contains the type of response to send.
[in] pMessageParameters
Pointer to an IWSDMessageParameters object that contains the message parameters from the original request message.
Return value
Possible return values include, but are not limited to, the following.
Return code | Description |
---|---|
|
Method succeeded. |
|
pOperation or pMessageParameters is NULL. |
|
The method could not be completed. |
|
Insufficient memory to complete the operation. |
|
The method failed. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wsdhost.h (include Wsdapi.h) |
DLL | Wsdapi.dll |