TranInitLibrary

This function is called to initialize the transport.

BOOL TranInitLibrary(
  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 Values

TRUE indicates success and FALSE indicates failure.

Remarks

TranInitLibrary 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

OS Versions: Windows CE .NET 4.0 and later.
Header: Kitltran.h.
Link Library: Not applicable.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.