lineGetDevConfig
The lineGetDevConfig
function returns an "opaque" data structure object, the contents of
which are specific to the line (service provider) and device class. The data
structure object stores the current configuration of a media-stream device
associated with the line device.
LONG lineGetDevConfig(
DWORD dwDeviceID, |
|
LPVARSTRING lpDeviceConfig, |
|
LPCSTR lpszDeviceClass |
|
); |
|
Parameters
dwDeviceID
The line
device to be configured.
lpDeviceConfig
A pointer to
the memory location of type VARSTRING
lpszDeviceClass
A pointer to
a NULL-terminated ASCII string that specifies the device class of the device
whose configuration is requested. Valid device class lineGetID
Return Values
Returns zero
if the function is successful or a negative error number if an error has
occurred. Possible return values are:
LINEERR_BADDEVICEID,
LINEERR_NODRIVER, LINEERR_INVALDEVICECLASS, LINEERR_OPERATIONUNAVAIL,
LINEERR_INVALPOINTER, LINEERR_RESOURCEUNAVAIL, LINEERR_STRUCTURETOOSMALL, LINEERR_OPERATIONFAILED,
LINEERR_NOMEM, LINEERR_UNINITIALIZED, LINEERR_NODEVICE.
Remarks
Call states
are device specific.
The lineGetDevConfig
function can be used to retrieve a data structure from TAPI that specifies the
configuration of a media stream device associated with a particular line
device. For example, the contents of this structure could specify data rate,
character format, modulation schemes, and error control protocol settings for a
"datamodem" media device associated with the line.
Typically, an
application will call lineGetID
The exact
format of the data contained within the structure is specific to the line and
media stream API (device class), is undocumented, and is undefined. The
structure returned by this function cannot be directly accessed or manipulated
by the application, but can only be stored intact and later used in lineSetDevConfig
to restore the settings. The structure also cannot necessarily be passed to
other devices, even of the same device class (although this may work in some
instances, it is not guaranteed).
See Also