Share via


TransportGetDevCfg

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

This function is used by KITL to get the device side KITL transport configuration information.

Syntax

BOOL TransportGetDevCfg(
  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 when called and then reset by the KITL transport to the size of data written to the pbBuffer buffer.

Return Value

Returns TRUE if data is added to the buffer; otherwise, returns FALSE.

If the transport has no device configuration information like a serial port, set pcbBuffer to 0 and return TRUE.

Remarks

Assign TransportGetDevCfg to the pfnGetDevCfg member of KITLTRANSPORT during OEMKitlInit.

For Ethernet transport, use EDBG_ADDR to provide the IP, MAC address, and port of the device.

For serial KITL, which is directly connected, TransportGetDevCfg is not required, but the OAL still needs to provide a stub function for it.

Requirements

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

See Also

Tasks

Implementing the OEMKitlInit Function

Reference

KITLTRANSPORT
OEMKitlInit