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

📄 func1_078n.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>lineGetDevConfig</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="lineGetDevConfig">
<META NAME="MS-HAID" CONTENT="_tapi2_linegetdevconfig">
</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_linegetdevconfig"></A>lineGetDevConfig</H1>

<P>The <B>lineGetDevConfig</B> 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. </P>

<PRE class=syntax><B>LONG WINAPI lineGetDevConfig(
  DWORD</B><I> dwDeviceID</I><B>,            </B>
<B>  LPVARSTRING</B><I> lpDeviceConfig</I><B>,  </B>
<B>  LPCSTR</B><I> lpszDeviceClass       </I>
<B>);</B></PRE>

<H4>Parameters</H4>

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

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

<DT><I>lpDeviceConfig</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 <B>lineGetDevConfig</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>

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

<DD>A pointer to a null-terminated string that specifies the device class of the device whose configuration is requested. Valid device class <A HREF="func1_2gf8.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_2gf8.htm"><B>lineGetID</B></A> strings are the same as those specified for the function. 
</DD>
</DL>

<H4>Return Values</H4>

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

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

<H4>Remarks</H4>

<P>Call states are device specific. </P>

<P>The <B>lineGetDevConfig</B> 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. </P>

<P>Typically, an application calls <A HREF="func1_2gf8.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_2gf8.htm"><B>lineGetID</B></A> to identify the media stream device associated with a line, and then calls <A HREF="func1_53tz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_53tz.htm"><B>lineConfigDialog</B></A> to allow the user to set up the device configuration. It could then call <B>lineGetDevConfig</B>, and save the configuration information in a phone book (or other database) associated with a particular call destination. When the user later wishes to call the same destination again, <A HREF="func2_0l5z.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_0l5z.htm"><B>lineSetDevConfig</B></A> can be used to restore the configuration settings selected by the user. The functions <B>lineSetDevConfig</B>, <B>lineConfigDialog</B>, and <B>lineGetDevConfig</B> can be used, in that order, to allow the user to view and update the settings. </P>

<P>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 <A HREF="func2_0l5z.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_0l5z.htm"><B>lineSetDevConfig</B></A> to restore the settings. The structure also cannot necessarily be passed to other devices, even of the same device class (although this can work in some instances, it is not guaranteed). </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.3 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_2gf8.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_2gf8.htm"><B>lineGetID</B></A>, <A HREF="func2_0l5z.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_0l5z.htm"><B>lineSetDevConfig</B></A>, <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 + -