⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 func1_9mpg.htm

📁 TAPI Exampple
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML DIR="LTR"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso8859-1">
</HEAD>
<TITLE>lineConfigDialogEdit</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="lineConfigDialogEdit">
<META NAME="MS-HAID" CONTENT="_tapi2_lineconfigdialogedit">
</HEAD>
<BODY TOPMARGIN="0">

<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<!--SYNC_START-->
<script language="JavaScript" src='/library/synch.js'></script>
<!--SYNC_END-->

<H1><A NAME="_tapi2_lineconfigdialogedit"></A>lineConfigDialogEdit</H1>

<P>The <B>lineConfigDialogEdit</B> function causes the provider of the specified line device to display a dialog box (attached to <I>hwndOwner</I> of the application) to allow the user to configure parameters related to the line device. </P>

<PRE class=syntax><B>LONG WINAPI lineConfigDialogEdit(
  DWORD</B><I> dwDeviceID</I><B>,              </B>
<B>  HWND</B><I> hwndOwner</I><B>,                </B>
<B>  LPCSTR</B><I> lpszDeviceClass</I><B>,        </B>
<B>  LPVOID const</B><I> lpDeviceConfigIn</I><B>,  </B>
<B>  DWORD</B><I> dwSize</I><B>,                  </B>
<B>  LPVARSTRING</B><I> lpDeviceConfigOut  </I>
<B>);</B></PRE>

<H4>Parameters</H4>

<DL>
<DT><I>dwDeviceID</I> </DT>

<DD>The line device to be configured. </DD>

<DT><I>hwndOwner</I> </DT>

<DD>A handle to a window to which the dialog box is to be attached. Can be NULL to indicate that any window created during the function should have no owner window. </DD>

<DT><I>lpszDeviceClass</I> </DT>

<DD>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. </DD>

<DT><I>lpDeviceConfigIn</I> </DT>

<DD>A pointer to the opaque configuration data structure that was returned by <A HREF="func1_078n.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_078n.htm"><B>lineGetDevConfig</B></A> (or a previous invocation of <B>lineConfigDialogEdit</B>) in the variable portion of the <A HREF="struc2_8vle.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_8vle.htm"><B>VARSTRING</B></A> structure. </DD>

<DT><I>dwSize</I> </DT>

<DD>The number of bytes in the structure pointed to by <I>lpDeviceConfigIn</I>. This value is returned in the <B>dwStringSize</B> member in the <B>VARSTRING</B> structure returned by <B>lineGetDevConfig</B> or a previous invocation of <B>lineConfigDialogEdit</B>. </DD>

<DT><I>lpDeviceConfigOut</I> </DT>

<DD>A pointer to the memory location of type <A HREF="struc2_8vle.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_8vle.htm"><B>VARSTRING</B></A> where the device configuration structure is returned. Upon successful completion of the request, this location is filled with the device configuration. The <B>dwStringFormat</B> member in the <B>VARSTRING</B> structure is set to STRINGFORMAT_BINARY. Prior to calling <A HREF="func1_078n.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_078n.htm"><B>lineGetDevConfig</B></A> (or a future invocation of <B>lineConfigDialogEdit</B>), the application should set the <B>dwTotalSize</B> member of this structure to indicate the amount of memory available to TAPI for returning information. 
</DD>
</DL>

<H4>Return Values</H4>

<P>Returns zero if the request succeeds or a negative error number if an error occurs. Possible return values are: </P>

<P>LINEERR_BADDEVICEID, LINEERR_OPERATIONFAILED, LINEERR_INVALDEVICECLASS, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALPARAM, LINEERR_STRUCTURETOOSMALL, LINEERR_INVALPOINTER, LINEERR_UNINITIALIZED, LINEERR_NODRIVER, LINEERR_OPERATIONUNAVAIL, LINEERR_NOMEM, LINEERR_NODEVICE.</P>

<H4>Remarks</H4>

<P>If LINEERR_STRUCTURETOOSMALL is returned, the <B>dwTotalSize</B> member of the <A HREF="struc2_8vle.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_8vle.htm"><B>VARSTRING</B></A> structure pointed to by <I>lpDeviceConfigOut</I> does not specify enough memory to contain the entire configuration structure. The <B>dwNeededSize</B> member has been set to the amount required. To the extent that user entries were reflected in information that could not be returned due to insufficient space, those edits are lost; applications should therefore allocate the maximum amount of space that may be needed by the device class to return its configuration structure (for more information, see <A HREF="devclass_9nar.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/devclass_9nar.htm">TAPI Device Classes</A>). </P>

<P>The <B>lineConfigDialogEdit</B> function causes the service provider to display a modal dialog box (attached to <I>hwndOwner</I> of the application) to allow the user to configure parameters related to the line specified by <I>dwDeviceID</I>. </P>

<P>The <I>lpszDeviceClass</I> 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 <A HREF="func1_2gf8.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_2gf8.htm"><B>lineGetID</B></A>. For example, if the line supports the Comm API, passing "COMM" as <I>lpszDeviceClass</I> causes the provider to display the parameters related specifically to Comm (or, at least, start at the corresponding point in a multilevel configuration dialog box chain, so the user doesn't have to "dig" to find the parameters of interest). </P>

<P>The <I>lpszDeviceClass</I> parameter would be "tapi/line" , "", or NULL to cause the provider to display the highest level configuration for the line. </P>

<P>The difference between this function and <A HREF="func1_53tz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_53tz.htm"><B>lineConfigDialog</B></A> is the source of the parameters to edit and the result of the editing. In <B>lineConfigDialog</B>, the parameters edited are those currently in use on the device (or set for use on the next call), and any changes made have (to the maximum extent possible) an immediate impact on any active connection; also, the application must use <A HREF="func1_078n.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_078n.htm"><B>lineGetDevConfig</B></A> to fetch the result of parameter changes from <A HREF="func1_53tz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_53tz.htm"><B>lineConfigDialog</B></A>. With <B>lineConfigDialogEdit</B>, the parameters to edit are passed in from the application, and the results are returned to the application, with <I>no</I> impact on active connections; the results of the editing are returned with this function, and the application does not need to call <B>lineGetDevConfig</B>. Thus, <B>lineConfigDialogEdit</B> permits an application to provide the ability for the user to set up parameters for future calls without having an impact on any active call. However, the output of this function can be passed to <A HREF="func2_0l5z.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_0l5z.htm"><B>lineSetDevConfig</B></A> to affect the current call or next call. </P>

<P>Although this is a new function that older applications would not be expected to call, for backward compatibility they should not be prevented from doing so; the function works the same way for all applications. </P>

<H4><A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/sdkintro/guide_927n.htm  \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上.  \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/library/psdk/sdkintro/guide_927n.htm'" tppabs="http://msdn.microsoft.com/library/psdk/sdkintro/guide_927n.htm">Requirements</A> </H4>

<P><B>&nbsp;&nbsp;Windows NT/2000: </B>Requires Windows NT 4.0 SP3 or later.<BR>
<B>&nbsp;&nbsp;Windows 95/98: </B>Requires Windows 95 or later.<BR>
<B>&nbsp;&nbsp;Version: </B>Requires TAPI 1.4 or later.<BR>
<B>&nbsp;&nbsp;Header: </B>Declared in Tapi.h.<BR>
<B>&nbsp;&nbsp;Library: </B>Use Tapi32.lib.<BR>
<B>&nbsp;&nbsp;Unicode: </B>Implemented as Unicode and ANSI versions on all platforms.</P>

<H4>See Also</H4>

<P><A HREF="quickref_1okl.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/quickref_1okl.htm">TAPI 2.2 Reference Overview</A>, <A HREF="quickref_1pnp.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/quickref_1pnp.htm">Basic Telephony Services Reference</A>, <A HREF="func1_53tz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_53tz.htm"><B>lineConfigDialog</B></A>, <A HREF="func1_078n.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_078n.htm"><B>lineGetDevConfig</B></A>,<B> <A HREF="func1_2gf8.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_2gf8.htm">lineGetID</A></B>,<B> <A HREF="func2_0l5z.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_0l5z.htm">lineSetDevConfig</A></B>, <A HREF="struc2_8vle.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_8vle.htm"><B>VARSTRING</B></A> </P>
<DIV CLASS="footer">Built on Monday, August 14, 2000</DIV>
<!--FOOTER_START-->
<DIV CLASS="footer" STYLE="color:#000000;font-size:90%;">
<A HREF="mailto:sdkfdbk@microsoft.com">Send feedback</A> to the Platform SDK.</P>
<P><A HREF="javascript:if(confirm('http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm  \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上.  \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm'" tppabs="http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm" TARGET="_top">&#169; 1999 Microsoft Corporation. All rights reserved. Terms of use.</A></P>
</DIV>
<!--FOOTER_END-->

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -