📄 func1_2o54.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>lineInitializeEx</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="lineInitializeEx">
<META NAME="MS-HAID" CONTENT="_tapi2_lineinitializeex">
</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_lineinitializeex"></A>lineInitializeEx</H1>
<P>The <B>lineInitializeEx</B> function initializes the application's use of TAPI for subsequent use of the line abstraction. It registers the application's specified notification mechanism and returns the number of line devices available to the application. A line device is any device that provides an implementation for the line-prefixed functions in the Telephony API. </P>
<PRE class=syntax><B>LONG WINAPI lineInitializeEx(
LPHLINEAPP</B><I> lphLineApp</I><B>, </B>
<B> HINSTANCE</B><I> hInstance</I><B>, </B>
<B> LINECALLBACK</B><I> lpfnCallback</I><B>, </B>
<B> LPCSTR</B><I> lpszFriendlyAppName</I><B>, </B>
<B> LPDWORD</B><I> lpdwNumDevs</I><B>, </B>
<B> LPDWORD</B><I> lpdwAPIVersion</I><B>, </B>
<B> LPLINEINITIALIZEEXPARAMS</B><I> lpLineInitializeExParams </I>
<B>);</B></PRE>
<H4>Parameters</H4>
<DL>
<DT><I>lphLineApp</I> </DT>
<DD>A pointer to a location that is filled with the application's usage handle for TAPI. </DD>
<DT><I>hInstance</I> </DT>
<DD>The instance handle of the client application or DLL. The application or DLL can pass NULL for this parameter, in which case TAPI uses the module handle of the root executable of the process (for purposes of identifying call handoff targets and media mode priorities). </DD>
<DT><I>lpfnCallback</I> </DT>
<DD>The address of a callback function that is invoked to determine status and events on the line device, addresses, or calls, when the application is using the "hidden window" method of event notification (for more information see <A HREF="func1_31lv.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_31lv.htm"><B>lineCallbackFunc</B></A>). This parameter is ignored and should be set to NULL when the application chooses to use the "event handle" or "completion port" event notification mechanisms. </DD>
<DT><I>lpszFriendlyAppName</I> </DT>
<DD>A pointer to a null-terminated text string that contains only displayable characters. If this parameter is not NULL, it contains an application-supplied name for the application. This name is provided in the <A HREF="struc1_4oky.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc1_4oky.htm"><B>LINECALLINFO</B></A> structure to indicate, in a user-friendly way, which application originated, or originally accepted or answered the call. This information can be useful for call-logging purposes. If <I>lpszFriendlyAppName</I> is NULL, the application's module file name is used instead (as returned by the Windows API <A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/winbase/dll_0ysl.htm \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上. \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/library/psdk/winbase/dll_0ysl.htm'" tppabs="http://msdn.microsoft.com/library/psdk/winbase/dll_0ysl.htm"><B>GetModuleFileName</B></A>). </DD>
<DT><I>lpdwNumDevs</I> </DT>
<DD>A pointer to a <B>DWORD</B>-sized location. Upon successful completion of this request, this location is filled with the number of line devices available to the application. </DD>
<DT><I>lpdwAPIVersion</I> </DT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -