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

📄 msgs_0hnp.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>LINE_GENERATE</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="LINE_GENERATE">
<META NAME="MS-HAID" CONTENT="_tapi2_line_generate">
</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_generate"></A>LINE_GENERATE</H1>

<P>The TAPI LINE_GENERATE message is sent to notify the application that the current digit or tone generation has terminated. Only one such generation request can be in progress an a given call at any time. This message is also sent when digit or tone generation is canceled. </P>

<PRE class=syntax>LINE_GENERATE
hDevice = (DWORD) hCall;
dwCallbackInstance = (DWORD) hCallback;
dwParam1 = (DWORD) GenerateTermination;
dwParam2 = (DWORD) 0;
dwParam3 = (DWORD) 0;</PRE>

<H4>Parameters</H4>

<DL>
<DT><I>hDevice</I> </DT>

<DD>A handle to the call. </DD>

<DT><I>dwCallbackInstance</I> </DT>

<DD>The callback instance supplied when opening the line. </DD>

<DT><I>dwParam1</I> </DT>

<DD>The reason why digit or tone generation was terminated. This parameter must be one and only one of the <A HREF="constnts_1soj.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_1soj.htm">LINEGENERATETERM_ constants</A>.</DD>

<DT><I>dwParam2</I> </DT>

<DD>Unused. </DD>

<DT><I>dwParam3</I> </DT>

<DD>The "tick count" (number of milliseconds since Windows started) at which the digit or tone generation completed. For API versions earlier than 2.0, this parameter is unused. 
</DD>
</DL>

<H4>Return Values</H4>

<P>No return value. </P>

<H4>Remarks</H4>

<P>The LINE_GENERATE message is only sent to the application that requested the digit or tone generation. </P>

<P>Because the timestamp specified by <I>dwParam3</I> may have been generated on a computer other than the one on which the application is executing, it is useful only for comparison to other similarly timestamped messages generated on the same line device (<A HREF="msgs_65mb.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_65mb.htm">LINE_GATHERDIGITS</A>, <A HREF="msgs_5p0z.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_5p0z.htm">LINE_MONITORDIGITS</A>, <A HREF="msgs_0ext.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_0ext.htm">LINE_MONITORMEDIA</A>, <A HREF="msgs_8nz9.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_8nz9.htm">LINE_MONITORTONE</A>), in order to determine their <I>relative</I> timing (separation between events). The tick count can "wrap around" after approximately 49.7 days; applications must take this into account when performing calculations. </P>

<P>If the service provider does not generate the timestamp (for example, if it was created using an earlier version of TAPI), then TAPI provides a timestamp at the point closest to the service provider generating the event so that the synthesized timestamp is as accurate as possible. </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 2.0 or later.<BR>
<B>&nbsp;&nbsp;Header: </B>Declared in Tapi.h.</P>

<H4>See Also</H4>

<P><A HREF="msgs_65mb.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_65mb.htm">LINE_GATHERDIGITS</A>, <A HREF="msgs_5p0z.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_5p0z.htm">LINE_MONITORDIGITS</A>, <A HREF="msgs_0ext.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_0ext.htm">LINE_MONITORMEDIA</A>, <A HREF="msgs_8nz9.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_8nz9.htm">LINE_MONITORTONE</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 + -