?? func1_2ek4.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> Windows NT/2000: </B>Requires Windows NT 4.0 SP3 or later.<BR>
<B> Windows 95/98: </B>Requires Windows 95 or later.<BR>
<B> Version: </B>Requires TAPI 1.3 or later.<BR>
<B> Header: </B>Declared in Tapi.h.<BR>
<B> Library: </B>Use Tapi32.lib.<BR>
<B> 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">© 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 + -