TranInitLibrary (Compact 2013)

3/26/2014

This function is called to initialize the transport.

Syntax

BOOL TranInit Library(
  LPCWSTR pszRegKeyRoot
);

Parameters

  • pszRegKeyRoot
    [in] Pointer to the string that contains the root registry key under HKEY_CURRENT_USER that stores transport-specific information.

Return Value

TRUE indicates success and FALSE indicates failure.

Remarks

TranInit Library is called to initialize the host-side KITL transport. Use this function to initialize your default serial port and settings, such as baud rate, byte size, stop bits, and parity. This function is called only once when the transport library is loaded for the first time. Because of this, all the global and static variables with global scope need to be initialized in this function.

Requirements

Header

kitltran.h

Library

Developer Implemented

See Also

Reference

KITL Transport Functions

Other Resources

Kernel Independent Transport Layer