?? msgs_86ed.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>PHONE_REMOVE</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="PHONE_REMOVE">
<META NAME="MS-HAID" CONTENT="_tapi2_phone_remove">
</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_phone_remove"></A>PHONE_REMOVE</H1>
<P>The TAPI PHONE_REMOVE message is sent to inform an application of the removal (deletion from the system) of a phone device. Generally, this is not used for temporary removals, such as extraction of PCMCIA devices, but only for permanent removals in which the device would no longer be reported by the service provider if TAPI were reinitialized. </P>
<PRE class=syntax>PHONE_REMOVE
hDevice = (DWORD) 0;
dwCallbackInstance = (DWORD) 0;
dwParam1 = (DWORD) hDeviceID;
dwParam2 = (DWORD) 0;
dwParam3 = (DWORD) 0;</PRE>
<H4>Parameters</H4>
<DL>
<DT><I>hDevice</I> </DT>
<DD>Reserved. Set to zero. </DD>
<DT><I>dwCallbackInstance</I> </DT>
<DD>Reserved. Set to zero. </DD>
<DT><I>dwParam1</I> </DT>
<DD>Identifier of the phone device that was removed. </DD>
<DT><I>dwParam2</I> </DT>
<DD>Reserved. Set to zero. </DD>
<DT><I>dwParam3</I> </DT>
<DD>Reserved. Set to zero.
</DD>
</DL>
<H4>Return Values</H4>
<P>No return value. </P>
<H4>Remarks and Backward Compatibility</H4>
<P>Applications TAPI version 2.0 or later are sent a PHONE_REMOVE message. This informs them that the device has been removed from the system. The PHONE_REMOVE message is preceded by a <A HREF="msgs_6751.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_6751.htm">PHONE_CLOSE</A> message on each phone handle, if the application had the phone open. This message is sent to all applications supporting TAPI version 2.0 or later that have called <A HREF="func2_1tbs.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_1tbs.htm"><B>phoneInitializeEx</B></A>, including those that do not have any phone devices open at the time. </P>
<P>Older applications (that negotiated TAPI version 1.4 or earlier) are sent a <A HREF="msgs_3f8l.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_3f8l.htm">PHONE_STATE</A> message specifying PHONESTATE_REMOVED, followed by a <A HREF="msgs_6751.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_6751.htm">PHONE_CLOSE</A> message. Unlike the PHONE_REMOVE message, however, these older applications can receive these messages only if they have the phone open when it is removed. If they do not have the phone open, their only indication that the device was removed would be receiving a PHONEERR_NODEVICE when they attempt to access the device. </P>
<P>After a device has been removed, any attempt to access the device by its device identifier results in a PHONEERR_NODEVICE error. After all TAPI applications have shutdown so that TAPI can restart, and when TAPI is reinitialized, the removed device no longer occupies a device identifier. </P>
<P class=note><B>Implementation Note</B> It is TAPI that returns this PHONEERR_NODEVICE message after a PHONE_REMOVE message is received from a service provider; no further calls are made to that service provider using that phone device identifier. </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> 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_6751.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_6751.htm">PHONE_CLOSE</A>, <A HREF="msgs_3f8l.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_3f8l.htm">PHONE_STATE</A>, <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> </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">© 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 + -