CTI32 Class Library

cti.SetHook Method 

: Puts a channel on-hook or takes a channel off-hook.

[Visual Basic]
Public Shared Function SetHook( _
   ByVal chdev As Integer, _
   ByVal hook As HookState _
) As Integer
[C#]
public static int SetHook(
   int chdev,
   HookState hook
);

Parameters

chdev
The channel device handle. Pass the channel side device handle.
hook
ONHOOK or OFFHOOK

Return Value

0=successful -1=Error.

See Also

cti Class | CTI32NetLib Namespace