Export (0) Print
Expand All
Expand Minimize

WS_DECODER_DECODE_CALLBACK function

Decodes a message.

Syntax


void WS_DECODER_DECODE_CALLBACK(
  _In_      void* encoderContext,
  void* buffer,
  _In_      ULONG maxLength,
  _Out_     ULONG* *length,
  _In_opt_  const WS_ASYNC_CONTEXT* asyncContext,
  _In_opt_  WS_ERROR* error
);

Parameters

encoderContext [in]

The decoder instance returned by the WS_CREATE_DECODER_CALLBACK.

buffer

The buffer to read into.

maxLength [in]

The maximum number of bytes to read.

length [out]

The number of bytes read should be returned here.

The number of bytes should be set to 0 when there are no more bytes left. This indicates the end of the decoded message data, and will cause WS_DECODER_END_CALLBACK to be invoked.

asyncContext [in, optional]

Information on how to invoke the function asynchronously, or NULL if invoking synchronously.

error [in, optional]

Specifies where additional error information should be stored if the function fails.

Return value

Return codeDescription
E_OUTOFMEMORY

Ran out of memory.

E_INVALIDARG

One or more arguments are invalid.

Other Errors

This function may return other errors not listed above.

 

Remarks

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

WebServices.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft