?? func2_1tbs.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>phoneInitializeEx</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="phoneInitializeEx">
<META NAME="MS-HAID" CONTENT="_tapi2_phoneinitializeex">
</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_phoneinitializeex"></A>phoneInitializeEx</H1>
<P>The <B>phoneInitializeEx</B> function initializes the application's use of TAPI for subsequent use of the phone abstraction. It registers the application's specified notification mechanism and returns the number of phone devices available to the application. A phone device is any device that provides an implementation for the phone-prefixed functions in the Telephony API. </P>
<PRE class=syntax><B>LONG WINAPI phoneInitializeEx(
LPHPHONEAPP</B><I> lphPhoneApp</I><B>, </B>
<B> HINSTANCE</B><I> hInstance</I><B>, </B>
<B> PHONECALLBACK</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> LPPHONEINITIALIZEEXPARAMS</B><I> lpPhoneInitializeExParams </I>
<B>);</B></PRE>
<H4>Parameters</H4>
<DL>
<DT><I>lphPhoneApp</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. </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="func2_26sj.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_26sj.htm"><B>phoneCallbackFunc</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 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="struc2_3do2.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_3do2.htm"><B>PHONESTATUS</B></A> structure to indicate, in a user-friendly way, which application has ownership of the phone device. If <I>lpszFriendlyAppName</I> is NULL, the application's module filename is used instead (as returned by the Windows function<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>. Upon successful completion of this request, this location is filled with the number of phone devices available to the application. </DD>
<DT><I>lpdwAPIVersion</I> </DT>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -