Compartilhar via


TransportGetDevCfg (Windows CE 5.0)

Send Feedback

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

BOOL TransportGetDevCfg(LPBYTEpbBuffer,PUSHORTpcbBuffer);

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 Values

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Kitl.h.
Link Library: Kitl.lib.

See Also

KITLTRANSPORT | OEMKitlInit | Implementing the OEMKitlInit Function

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.