次の方法で共有


PFN_SETHOSTCFG (Windows Embedded CE 6.0)

1/5/2010

This function is used by KITL to send desktop transport configuration information to the device transport.

Syntax

BOOL TransportSetHostCfg(
  LPBYTE pbBuffer,
  PUSHORT pcbBuffer
);

Parameters

  • pbBuffer
    [in] Pointer to a buffer used to receive the data from the transport.
  • pcbBuffer
    [in] Set to the size of the buffer.

Return Value

If the operation is successful, TRUE is returned; otherwise, FALSE is returned.

Remarks

The information contained in KITLTRANSPORT depends on the hardware transport in use.

You implement a function of this type and assign it to the pfnSetHostCfg member of KITLTRANSPORT during your Board Support Package (BSP) KITL initialization. For an example of the implementation of this function, see the KitlEthSetHostCfg function in %_WINCEROOT%\Platform\Common\Src\Common\Kitl\Kitleth.c. If you are using the common KITL library in conjunction with Ethernet or serial transport, this function is already implemented for you.

Requirements

Header kitl.h
Library Kitl.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Required KITL Functions
KITLTRANSPORT