Share via


WSDSetConfigurationOption (Windows Embedded CE 6.0)

1/6/2010

This function sets a WSDAPI configuration option.

Syntax

HRESULT WINAPI WSDSetConfigurationOption(
  DWORD dwOption,
  LPVOID pVoid,
  DWORD cbInBuffer
);

Parameters

  • dwOption
    The type of configuration data to set.

    Value Meaning

    WSDAPI_OPTION_MAX_INBOUND_MESSAGE_SIZE0x0001

    Set the maximum size, in bytes, of an inbound message.

  • pVoid
    [out] Pointer to the configuration data. If dwOption is set to WSDAPI_OPTION_MAX_INBOUND_MESSAGE_SIZE, then pVoid should point to a DWORD that represents the size of an inbound message. The size of the message is a value between 32768 and 1048576.
  • cbInBuffer
    The size, in bytes, of the data pointed to by pVoid. If dwOption is set to WSDAPI_OPTION_MAX_INBOUND_MESSAGE_SIZE, then this parameter should be set to sizeof(DWORD).

Return Value

The following table shows the possible error code return values.

Error Code Description

S_OK

The function succeeded.

E_INVALIDARG

The dwOption is not set to WSDAPI_OPTION_MAX_INBOUND_MESSAGE_SIZE, cbInBuffer is 0, cbInBuffer is not the correct size for the type of configuration data, or pVoid is NULL.

Requirements

Header wsdapi.h
Library wsdapi.lib
Windows Embedded CE Windows Embedded CE 6.0 R2

See Also

Reference

Web Services on Devices Functions
Web Services on Devices Reference