解码消息。
语法
WS_DECODER_DECODE_CALLBACK WsDecoderDecodeCallback;
HRESULT WsDecoderDecodeCallback(
  [in]           void *encoderContext,
                 void *buffer,
  [in]           ULONG maxLength,
  [out]          ULONG *length,
  [in, optional] const WS_ASYNC_CONTEXT *asyncContext,
  [in, optional] WS_ERROR *error
)
{...}
参数
[in] encoderContext
WS_CREATE_DECODER_CALLBACK返回的解码器实例。
buffer
要读取的缓冲区。
[in] maxLength
最多读取的字节数。
[out] length
应在此处返回读取的字节数。
当没有剩余字节数时,应将字节数设置为 0。 这表示已解码消息数据的末尾,并将导致调用 WS_DECODER_END_CALLBACK 。
[in, optional] asyncContext
有关如何异步调用函数的信息;如果同步调用,则为 NULL 。
[in, optional] error
指定在函数失败时应存储其他错误信息的位置。
返回值
| 返回代码 | 说明 | 
|---|---|
| 
 | 内存不足。 | 
| 
 | 一个或多个参数无效。 | 
| 
 | 此函数可能会返回上面未列出的其他错误。 | 
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | Windows 7 [仅限桌面应用] | 
| 最低受支持的服务器 | Windows Server 2008 R2 [仅限桌面应用] | 
| 目标平台 | Windows | 
| 标头 | webservices.h |