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

📄 func1_1fg3.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>lineGetNewCalls</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="lineGetNewCalls">
<META NAME="MS-HAID" CONTENT="_tapi2_linegetnewcalls">
</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_linegetnewcalls"></A>lineGetNewCalls</H1>

<P>The <B>lineGetNewCalls </B>function returns call handles to calls on a specified line or address for which the application currently does not have handles. The application is granted monitor privilege to these calls. </P>

<PRE class=syntax><B>LONG WINAPI lineGetNewCalls(
  HLINE</B><I> hLine</I><B>,               </B>
<B>  DWORD</B><I> dwAddressID</I><B>,         </B>
<B>  DWORD</B><I> dwSelect</I><B>,            </B>
<B>  LPLINECALLLIST</B><I> lpCallList  </I>
<B>);</B></PRE>

<H4>Parameters</H4>

<DL>
<DT><I>hLine</I> </DT>

<DD>A handle to an open line device. </DD>

<DT><I>dwAddressID</I> </DT>

<DD>An address on the given open line device. An address identifier is permanently associated with an address; the identifier remains constant across operating system upgrades.</DD>

<DT><I>dwSelect</I> </DT>

<DD>The selection of calls that are requested. This parameter uses one and only one of the <A HREF="constnts_9ylv.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_9ylv.htm">LINECALLSELECT_ Constants</A>. </DD>

<DT><I>lpCallList</I> </DT>

<DD>A pointer to a variably sized data structure of type <A HREF="struc1_101e.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc1_101e.htm"><B>LINECALLLIST</B></A>. Upon successful completion of the request, call handles to all selected calls are returned in this structure. Prior to calling <B>lineGetNewCalls</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_INVALADDRESSID, LINEERR_OPERATIONFAILED, LINEERR_INVALCALLSELECT, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALLINEHANDLE, LINEERR_STRUCTURETOOSMALL, LINEERR_INVALPOINTER, LINEERR_UNINITIALIZED, LINEERR_NOMEM. </P>

<H4>Remarks</H4>

<P>An application can use <B>lineGetNewCalls</B> to obtain handles to calls for which it currently has no handles. The application can select the calls for which handles are to be returned by basing this selection on scope (calls on a specified line, or calls on a specified address). For example, an application can request call handles to all calls on a given address for which it currently has no handle. The application is always given monitor privilege to the new call handles. Also, when opening a line, an application uses this function to become aware of existing calls. </P>

<P>The application can invoke <A HREF="func1_96cv.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_96cv.htm"><B>lineGetCallInfo</B></A> and <A HREF="func1_7iur.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_7iur.htm"><B>lineGetCallStatus</B></A> for each call in the list to determine the call's information and status, respectively. It can use <A HREF="func2_34px.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_34px.htm"><B>lineSetCallPrivilege</B></A> to change its privilege to owner. </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.</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="struc1_101e.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc1_101e.htm"><B>LINECALLLIST</B></A>, <A HREF="func1_96cv.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_96cv.htm"><B>lineGetCallInfo</B></A>, <A HREF="func1_7iur.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_7iur.htm"><B>lineGetCallStatus</B></A>, <A HREF="func2_34px.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_34px.htm"><B>lineSetCallPrivilege</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 + -