|
lineSetDevConfig
The lineSetDevConfig function allows the application to restore the configuration of a media
stream device on a line device to a setup previously obtained using lineGetDevConfig. 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.
LONG lineSetDevConfig(
DWORD dwDeviceID,
|
| LPVOID const lpDeviceConfig,
|
| DWORD dwSize,
|
| LPCSTR lpszDeviceClass
|
| );
|
|
Parameters
dwDeviceID
The line device to be configured.
lpDeviceConfig
A pointer to the opaque configuration data structure that was returned by lineGetDevConfig in the variable portion of the VARSTRING structure.
dwSize
The number of bytes in the structure pointed to by lpDeviceConfig. This value will have been returned in the dwStringSize field in the VARSTRING structure returned by lineGetDevConfig.
lpszDeviceClass
A pointer to a NULL-terminated ASCII string that specifies the device class of
the device whose configuration is to be set. Valid device class strings are
the same as those specified for the lineGetID function.
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_OPERATIONFAILED, LINEERR_INVALPARAM,
LINEERR_RESOURCEUNAVAIL, LINEERR_INVALLINESTATE, LINEERR_UNINITIALIZED,
LINEERR_NOMEM, LINEERR_NODEVICE.
Remarks
Call states are device specific.
Typically, an application will call lineGetID to identify the media stream device associated with a line, and then call lineConfigDialog to allow the user to set up the device configuration. It could then call lineGetDevConfig and save the configuration information in a phone book or other database
associated with a particular call destination. When the user wants to call the same
destination again, this function lineSetDevConfig can be used to restore the configuration settings selected by the user. The lineSetDevConfig, lineConfigDialog, and lineGetDevConfig functions can be used, in that order, to allow the user to view and update
the settings.
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 application must treat it as "opaque" and not manipulate the contents
directly. Generally, the structure can be sent using this function only to the same
device from which it was obtained. Certain Telephony service providers may,
however, permit structures to be interchanged between identical devices (that is,
multiple ports on the same multi-port modem card). Such interchangeability is
not guaranteed in any way, even for devices of the same device class.
Note that some service providers may permit the configuration to be set while
a call is active, and others may not.
See Also
lineConfigDialog, lineGetDevConfig, lineGetID, VARSTRING
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|