?? msgs_3cfo.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>LINE_PROXYREQUEST</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="LINE_PROXYREQUEST">
<META NAME="MS-HAID" CONTENT="_tapi2_line_proxyrequest">
</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_line_proxyrequest"></A>LINE_PROXYREQUEST</H1>
<P>The TAPI LINE_PROXYREQUEST message delivers a request to a registered proxy function handler. </P>
<PRE class=syntax>LINE_PROXYREQUEST
hDevice = (DWORD) hLine;
dwCallbackInstance = (DWORD) dwInstanceData;
dwParam1 = (DWORD) lpProxyRequest;
dwParam2 = (DWORD) 0;
dwParam3 = (DWORD) 0;</PRE>
<H4>Parameters</H4>
<DL>
<DT><I>hDevice</I> </DT>
<DD>The application's handle to the line device on which the agent status has changed. </DD>
<DT><I>dwCallbackInstance</I> </DT>
<DD>The callback instance supplied when opening the call's line. </DD>
<DT><I>dwParam1</I> </DT>
<DD>Pointer to a <A HREF="struc1_83ci.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc1_83ci.htm"><B>LINEPROXYREQUEST</B></A> structure containing the request to be processed by the proxy handler application. </DD>
<DT><I>dwParam2</I> </DT>
<DD>Reserved. </DD>
<DT><I>dwParam3</I> </DT>
<DD>Reserved.
</DD>
</DL>
<H4>Return Values</H4>
<P>No return value. </P>
<H4>Remarks</H4>
<P>The LINE_PROXYREQUEST message is sent only to the first application that registered to handle proxy requests of the type being delivered. </P>
<P>The application should process the request contained in the proxy buffer and call <A HREF="func1_4lyd.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_4lyd.htm"><B>lineProxyResponse</B></A> to return data or deliver results. Processing of the request should be done within the context of the application's TAPI callback function <I>only</I> if it can be performed immediately, without waiting for response from any other entity. If the application needs to communicate with other entities (for example, a service provider to handle PBX-based ACD, or any other system service which might result in blocking), then the request should be queued within the application and the callback function exited to avoid delaying the receipt of further TAPI messages by the application. </P>
<P>At the time the LINE_PROXYREQUEST is delivered to the proxy handler, TAPI has already returned a positive <I>dwRequestID</I> function result to the original application and unblocked the calling thread to continue execution. The application is awaiting a LINE_REPLY message, which is automatically generated when the proxy handler application calls <B>lineProxyResponse</B>. </P>
<P>The application shall not free the memory pointed to by <I>lpProxyRequest</I>. TAPI frees the memory during the execution of <A HREF="func1_4lyd.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_4lyd.htm"><B>lineProxyResponse</B></A>. The application can call <B>lineProxyResponse</B> exactly once for each LINE_PROXYREQUEST message. </P>
<P>If the application receives a <A HREF="msgs_1hyd.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_1hyd.htm">LINE_CLOSE</A> message while it has pending proxy requests, it should call <B>lineProxyResponse</B> for each pending request, passing in an appropriate <I>dwResult</I> value (such as LINEERR_OPERATIONFAILED). </P>
<H4><A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/sdkintro/guide_927n.htm \n\n這個文件不能通過 Teleport Pro 取回, 因為 地址在一個域或為它的開始地址設(shè)定的邊界的外部路徑上. \n\n你想從服務(wù)器打開它嗎?'))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 2.0 or later.<BR>
<B> Header: </B>Declared in Tapi.h.</P>
<H4>See Also</H4>
<P><A HREF="msgs_1hyd.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_1hyd.htm">LINE_CLOSE</A>, <A HREF="msgs_65mh.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_65mh.htm">LINE_REPLY</A>, <A HREF="struc1_83ci.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc1_83ci.htm"><B>LINEPROXYREQUEST</B></A>, <A HREF="func1_4lyd.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_4lyd.htm"><B>lineProxyResponse</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 取回, 因為 地址在一個域或為它的開始地址設(shè)定的邊界的外部路徑上. \n\n你想從服務(wù)器打開它嗎?'))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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -