lineSetStatusMessages

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function enables an application to specify which notification messages the application wants to receive for events related to status changes for the specified line or any of its addresses.


LONG lineSetStatusMessages(
  HLINE hLine, 
  DWORD dwLineStates, 
  DWORD dwAddressStates
);

hLine

[in] Handle to the line device.

dwLineStates

[in] Value that specifies for which line-device status changes a message is to be sent to the application. This parameter uses LINEDEVSTATE.

dwAddressStates

[in] Value that specifies for which address status changes a message is to be sent to the application. This parameter uses LINEADDRESSSTATE.

Zero indicates success. A negative error number indicates that an error occurred. The following table shows the return values for this function.

Value Description

LINEERR_INVALADDRESSSTATE

The address state is invalid.

LINEERR_INVALLINEHANDLE

The line handle is invalid.

LINEERR_INVALLINESTATE

The line state is invalid.

LINEERR_NOMEM

Not enough memory is available.

LINEERR_OPERATIONFAILED

The operation failed.

LINEERR_OPERATIONUNAVAIL

The operation is unavailable.

LINEERR_RESOURCEUNAVAIL

The resource is unavailable.

LINEERR_UNINITIALIZED

A parameter is uninitialized.

TAPI defines a number of messages that notify applications about events occurring on lines and addresses. An application may not be interested in receiving all address and line status change messages. The lineSetStatusMessages function can be used to select which messages the application receives. By default, address and line status reporting is disabled.

Prior to Windows CE 2.12, LINEDEVSTATE_ messages are not supported.

Headertapi.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show: