Platform SDK: TAPI |
The TSPI_lineGetLineDevStatus function queries the specified open line device for its current status. The information returned is global to all addresses on the line.
LONG TSPIAPI TSPI_lineGetLineDevStatus( HDRVLINE hdLine, LPLINEDEVSTATUS lpLineDevStatus );
Returns zero if the function succeeds, or an error number if an error occurs. Possible return values are as follows:
LINEERR_INVALLINEHANDLE, LINEERR_OPERATIONFAILED, LINEERR_NOMEM, LINEERR_RESOURCEUNAVAIL, LINEERR_OPERATIONUNAVAIL.
The following table indicates which members of the LINEDEVSTATUS data structure are filled in by TAPI and which are filled in by the service provider. The service provider must preserve (it must not overwrite) the values filled in by TAPI.
Member name | TAPI | Service provider |
---|---|---|
dwTotalSize; | X | |
dwNeededSize; | X | |
dwUsedSize; | X | |
dwNumOpens; | X | |
dwOpenMediaModes; | X | |
dwNumActiveCalls; | X | |
dwNumOnHoldCalls; | X | |
dwNumOnHoldPendCalls; | X | |
dwLineFeatures; | X | |
dwNumCallCompletions; | X | |
dwRingMode; | X | |
dwSignalLevel; | X | |
dwBatteryLevel; | X | |
dwRoamMode; | X | |
dwDevStatusFlags; | X | |
dwTerminalModesSize; | X | |
dwTerminalModesOffset; | X | |
dwDevSpecificSize; | X | |
dwDevSpecificOffset; | X |
Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 95 or later.
Version: Requires TAPI 1.3 or later.
Header: Declared in Tspi.h.