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

📄 func1_2ek4.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>lineGetRequest</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="lineGetRequest">
<META NAME="MS-HAID" CONTENT="_tapi2_linegetrequest">
</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_linegetrequest"></A>lineGetRequest</H1>

<P>The <B>lineGetRequest</B> function retrieves the next by-proxy request for the specified request mode. </P>

<PRE class=syntax><B>LONG WINAPI lineGetRequest(
  HLINEAPP</B><I> hLineApp</I><B>,      </B>
<B>  DWORD</B><I> dwRequestMode</I><B>,    </B>
<B>  LPVOID</B><I> lpRequestBuffer  </I>
<B>);</B></PRE>

<H4>Parameters</H4>

<DL>
<DT><I>hLineApp</I> </DT>

<DD>The application's usage handle for the line portion of TAPI. </DD>

<DT><I>dwRequestMode</I> </DT>

<DD>The type of request that is to be obtained. Note that <I>dwRequestMode</I> can only have one bit set. This parameter uses One and only one of the <A HREF="constnts_2r5f.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_2r5f.htm">LINEREQUESTMODE_ Constants</A>. </DD>

<DT><I>lpRequestBuffer</I> </DT>

<DD>A pointer to a memory buffer where the parameters of the request are to be placed. The size of the buffer and the interpretation of the information placed in the buffer depends on the request mode. The application-allocated buffer is assumed to be of sufficient size to hold the request. 

<P>If <I>dwRequestMode</I> is LINEREQUESTMODE_MAKECALL, interpret the content of the request buffer using the <A HREF="struc2_3xf6.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_3xf6.htm"><B>LINEREQMAKECALL</B></A> structure. 


<P>If <I>dwRequestMode</I> is LINEREQUESTMODE_MEDIACALL, interpret the content of the request buffer using the <A HREF="struc2_12pe.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_12pe.htm"><B>LINEREQMEDIACALL</B></A> structure. 

</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_INVALAPPHANDLE, LINEERR_NOTREGISTERED, LINEERR_INVALPOINTER, LINEERR_OPERATIONFAILED, LINEERR_INVALREQUESTMODE, LINEERR_RESOURCEUNAVAIL, LINEERR_NOMEM, LINEERR_UNINITIALIZED, LINEERR_NOREQUEST.</P>

<H4>Remarks</H4>

<P>A telephony-enabled application can request that a call be placed on its behalf by invoking <A HREF="func1_3vcc.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_3vcc.htm"><B>tapiRequestMakeCall</B></A>. These requests are queued by TAPI and the highest priority application that has registered to handle the request is sent a <A HREF="msgs_4h84.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_4h84.htm">LINE_REQUEST</A> message with indication of the mode of the request that is pending. Typically, this application is the user's call-control application. The LINE_REQUEST message indicates that zero or more requests may be pending for the registered application to process; after receiving LINE_REQUEST, it is the responsibility of the recipient application to call <B>lineGetRequest</B> until LINEERR_NOREQUEST is returned, indicating that no more requests are pending. </P>

<P>Next, the call-control application that receives this message invokes <B>lineGetRequest</B>, specifying the request mode and a buffer that is large enough to hold the request. The call-control application then interprets and executes the request. </P>

<P>After execution of <B>lineGetRequest</B>, TAPI purges the request from its internal queue, making room available for a subsequent request. It is therefore possible for a new <A HREF="msgs_4h84.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_4h84.htm">LINE_REQUEST</A> message to be received immediately upon execution of <B>lineGetRequest</B>, should the same or another application issue another request. It is the responsibility of the request recipient application to handle this scenario by some mechanism (for example, by making note of the additional LINE_REQUEST and deferring a subsequent <B>lineGetRequest</B> until processing of the preceding request completes, by getting the subsequent request and buffer as necessary, or by another appropriate means). </P>

<P>The subsequent LINE_REQUEST should not be ignored because it is not repeated by TAPI. </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="msgs_4h84.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_4h84.htm">LINE_REQUEST</A>, <A HREF="struc2_3xf6.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_3xf6.htm"><B>LINEREQMAKECALL</B></A>, <A HREF="func1_3vcc.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_3vcc.htm"><B>tapiRequestMakeCall</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 + -