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

📄 constnts_5dv7.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>PHONEERR_ Constants</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="PHONEERR_ Constants">
<META NAME="MS-HAID" CONTENT="_tapi2_phoneerr__constants">
</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_phoneerr__constants"></A>PHONEERR_ Constants</H1>

<P>This is the list of error codes that the implementation can return when invoking operations on phone devices. Consult the individual function descriptions to determine which of these error codes each function can return. 

<DL>
<DT>PHONEERR_ALLOCATED </DT>

<DD>The specified resource is already allocated. </DD>

<DT>PHONEERR_BADDEVICEID </DT>

<DD>The specified device identifier is invalid or out of range. </DD>

<DT>PHONEERR_DISCONNECTED</DT>

<DD>The call was disconnected.</DD>

<DT>PHONEERR_INCOMPATIBLEAPIVERSION </DT>

<DD>The application requested an API version or version range that cannot be supported by the Telephony API implementation or the corresponding service provider. </DD>

<DT>PHONEERR_INCOMPATIBLEEXTVERSION </DT>

<DD>The application requested an extension version or version range that cannot be supported by the service provider. </DD>

<DT>PHONEERR_INIFILECORRUPT </DT>

<DD>Because of internal inconsistencies or formatting problems in the telephon.INI file, it cannot be read and understood properly by TAPI. </DD>

<DT>PHONEERR_INUSE </DT>

<DD>The device is currently in use. The device cannot be configured. </DD>

<DT>PHONEERR_INVALAPPHANDLE </DT>

<DD>The application's specified usage handle or registration handle is invalid. </DD>

<DT>PHONEERR_INVALAPPNAME </DT>

<DD>The specified application name is invalid. If an application name is specified by the application, it is assumed that the string does not contain any nondisplayable characters and is NULL-terminated. </DD>

<DT>PHONEERR_INVALBUTTONLAMPID </DT>

<DD>The specified button/lamp identifier is out of range or invalid. </DD>

<DT>PHONEERR_INVALBUTTONMODE </DT>

<DD>The button mode parameter is invalid. </DD>

<DT>PHONEERR_INVALBUTTONSTATE </DT>

<DD>The button states parameter is invalid. </DD>

<DT>PHONEERR_INVALDATAID </DT>

<DD>The specified data identifier is invalid. </DD>

<DT>PHONEERR_INVALDEVICECLASS </DT>

<DD>The specified phone does not support the indicated device class. </DD>

<DT>PHONEERR_INVALEXTVERSION</DT>

<DD>The service provider extension version number is invalid.</DD>

<DT>PHONEERR_INVALHOOKSWITCHDEV </DT>

<DD>The hookswitch device parameter is invalid. </DD>

<DT>PHONEERR_INVALHOOKSWITCHMODE </DT>

<DD>The hookswitch mode parameter is invalid. </DD>

<DT>PHONEERR_INVALLAMPMODE </DT>

<DD>The specified lamp mode parameter is invalid. </DD>

<DT>PHONEERR_INVALPARAM </DT>

<DD>A parameter, such as a row or column value or a window handle, is invalid or out of range. </DD>

<DT>PHONEERR_INVALPHONEHANDLE </DT>

<DD>The specified device handle is invalid. </DD>

<DT>PHONEERR_INVALPHONESTATE </DT>

<DD>The phone device is not in a valid state for the requested operation. </DD>

<DT>PHONEERR_INVALPOINTER </DT>

<DD>One or more of the specified pointer parameters are invalid. </DD>

<DT>PHONEERR_INVALPRIVILEGE </DT>

<DD>The <I>dwPrivilege</I> parameter is invalid. </DD>

<DT>PHONEERR_INVALRINGMODE </DT>

<DD>The ring mode parameter is invalid. </DD>

<DT>PHONEERR_NODEVICE </DT>

<DD>The specified device identifier, which was previously valid, is no longer accepted because the associated device has been removed from the system since TAPI was last initialized or is corrupt in a way that was not detected at initialization. </DD>

<DT>PHONEERR_NODRIVER </DT>

<DD>The telephone service provider for the specified device found that one of its components is missing or corrupt in a way that was not detected at initialization time. The user should be advised to use the Telephony Control Panel to correct the problem. </DD>

<DT>PHONEERR_NOMEM </DT>

<DD>Insufficient memory to complete the requested operation, or unable to allocate or lock memory. </DD>

<DT>PHONEERR_NOTOWNER </DT>

<DD>The application does not have owner privilege to the specified phone device. </DD>

<DT>PHONEERR_OPERATIONFAILED </DT>

<DD>The operation failed for an unspecified reason. </DD>

<DT>PHONEERR_OPERATIONUNAVAIL </DT>

<DD>The operation is not available. </DD>

<DT>PHONEERR_REINIT </DT>

<DD>If TAPI reinitialization has been requested, for example as a result of adding or removing a telephony service provider, then <A HREF="func2_36g5.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_36g5.htm"><B>phoneInitialize</B></A>, <A HREF="func2_1tbs.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_1tbs.htm"><B>phoneInitializeEx</B></A> or <A HREF="func2_9o6m.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_9o6m.htm"><B>phoneOpen</B></A> requests are rejected with this error until the last application shuts down its usage of the API (using <A HREF="func2_7b8u.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_7b8u.htm"><B>phoneShutdown</B></A>), at which time the new configuration becomes effective and applications are once again permitted to call <B>phoneInitialize</B> or<B> phoneInitializeEx</B>.</DD>

<DT>PHONEERR_REQUESTOVERRUN</DT>

<DD>The maximum number of outstanding phone requests has been exceeded. </DD>

<DT>PHONEERR_RESOURCEUNAVAIL </DT>

<DD>The operation cannot be completed because of resource overcommitment. </DD>

<DT>PHONEERR_STRUCTURETOOSMALL </DT>

<DD>The specified phone caps structure is too small. </DD>

<DT>PHONEERR_UNINITIALIZED </DT>

<DD>The operation was invoked before any application called <A HREF="func2_36g5.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_36g5.htm"><B>phoneInitialize</B></A>, <A HREF="func2_1tbs.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_1tbs.htm"><B>phoneInitializeEx</B></A>.
</DD>
</DL>

<P>The values 0xC0000000 through 0xFFFFFFFF are available for device-specific extensions; the values 0x80000000 through 0xBFFFFFFF are reserved; and 0x00000000 through 0x7FFFFFFF are used as request identifiers. </P>

<P>If an application gets an error return that it does not specifically handle (such as an error defined by a device-specific extension), it should treat the error as a PHONEERR_OPERATIONFAILED (for an unspecified reason). </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="func2_36g5.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_36g5.htm"><B>phoneInitialize</B></A>, <A HREF="func2_1tbs.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_1tbs.htm"><B>phoneInitializeEx</B></A>, <A HREF="func2_9o6m.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_9o6m.htm"><B>phoneOpen</B></A>, <A HREF="func2_7b8u.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_7b8u.htm"><B>phoneShutdown</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">&#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 + -