The TAPICLIENT_LineSetTerminal function is called during a call to the lineSetTerminal function.
LONG TAPICLIENT_LineSetTerminal(
HMANAGEMENTCLIENT hmClient,
LPTAPIPERMANENTID lpPermanentID,
DWORD dwTerminalModes,
DWORD dwTerminalID,
BOOL bEnable
);
lineSetTerminal, TAPICLIENT_ClientInitialize, TAPIPERMANENTID