lineConfigDialogEdit
The lineConfigDialogEdit
function causes the provider of the specified line device to display a dialog
(attached to hwndOwner of the application) to allow the user to
configure parameters related to the line device.
LONG lineConfigDialogEdit(
DWORD dwDeviceID, |
|
HWND hwndOwner, |
|
LPCSTR lpszDeviceClass, |
|
LPVOID
const lpDeviceConfigIn, |
|
DWORD dwSize, |
|
LPVARSTRING lpDeviceConfigOut |
|
); |
|
Parameters
dwDeviceID
The line
device to be configured.
hwndOwner
A handle to a
window to which the dialog is to be attached. Can be NULL to indicate that any
window created during the function should have no owner window.
lpszDeviceClass
A pointer to
a NULL-terminated string that identifies a device class name. This device class
allows the application to select a specific subscreen of configuration
information applicable to that device class. This parameter is optional and can
be left NULL or empty, in which case the highest level configuration is
selected.
lpDeviceConfigIn
A pointer to
the opaque configuration data structure that was returned by lineGetDevConfig
dwSize
The number of
bytes in the structure pointed to by lpDeviceConfigIn. This value will
have been returned in the dwStringSize field in the VARSTRING
structure returned by lineGetDevConfig or a previous invocation of lineConfigDialogEdit.
lpDeviceConfigOut
A pointer to
the memory location of type VARSTRING where the device configuration
structure is returned. Upon successful completion of the request, this location
is filled with the device configuration. The dwStringFormat field in the
VARSTRING structure will be set to STRINGFORMAT_BINARY. Prior to calling
lineGetDevConfig (or a future invocation of lineConfigDialogEdit),
the application should set the dwTotalSize field of this structure to
indicate the amount of memory available to TAPI for returning information.
Return Values
Returns zero
if the request is successful or a negative error number if an error has
occurred. Possible return values are:
LINEERR_BADDEVICEID,
LINEERR_OPERATIONFAILED, LINEERR_INVALDEVICECLASS, LINEERR_RESOURCEUNAVAIL,
LINEERR_INVALPARAM, LINEERR_STRUCTURETOOSMALL, LINEERR_INVALPOINTER,
LINEERR_UNINITIALIZED, LINEERR_NODRIVER, LINEERR_OPERATIONUNAVAIL, LINEERR_NOMEM,
LINEERR_NODEVICE.
Remarks
If
LINEERR_STRUCTURETOOSMALL is returned, the dwTotalSize field of the VARSTRING
The lineConfigDialogEdit
function causes the service provider to display a modal dialog (attached to hwndOwner
of the application) to allow the user to configure parameters related to the
line specified by dwDeviceID.
The lpszDeviceClass
parameter allows the application to select a specific subscreen of
configuration information applicable to the device class in which the user is
interested; the permitted strings are the same as for lineGetID
The lpszDeviceClass
parameter would be "tapi/line" , "", or NULL to cause the
provider to display the highest level configuration for the line.
The
difference between this function and lineConfigDialog
Although this
is a new function which older applications would not be expected to call, for
backward compatibility, they should not be prevented from doing so; the
function will work the same way for all applications.
See Also