?? func2_2183.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>phoneSetStatusMessages</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="phoneSetStatusMessages">
<META NAME="MS-HAID" CONTENT="_tapi2_phonesetstatusmessages">
</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_phonesetstatusmessages"></A>phoneSetStatusMessages</H1>
<P>The <B>phoneSetStatusMessages</B> function enables an application to monitor the specified phone device for selected status events. </P>
<PRE class=syntax><B>LONG WINAPI phoneSetStatusMessages(
HPHONE</B><I> hPhone</I><B>, </B>
<B> DWORD</B><I> dwPhoneStates</I><B>, </B>
<B> DWORD</B><I> dwButtonModes</I><B>, </B>
<B> DWORD</B><I> dwButtonStates </I>
<B>);</B></PRE>
<H4>Parameters</H4>
<DL>
<DT><I>hPhone</I> </DT>
<DD>A handle to the open phone device to be monitored. </DD>
<DT><I>dwPhoneStates</I> </DT>
<DD>These flags specify the set of phone status changes and events for which the application can receive notification messages. This parameter can have zero, one, or more of the <A HREF="constnts_3s37.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_3s37.htm">PHONESTATE_ Constants</A>. </DD>
<DT><I>dwButtonModes</I> </DT>
<DD>The set of phone-button modes for which the application can receive notification messages. This parameter can have zero, one, or more of the <A HREF="constnts_5aib.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_5aib.htm">PHONEBUTTONMODE_ Constants</A>.</DD>
<DT><I>dwButtonStates</I> </DT>
<DD>The set of phone-button state changes for which the application can receive notification messages. If the <I>dwButtonModes</I> parameter is zero, <I>dwButtonStates</I> is ignored. If <I>dwButtonModes</I> has one or more bits set, this parameter must also have at least one bit set. This parameter uses the <A HREF="constnts_49yr.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_49yr.htm">PHONEBUTTONSTATE_ Constants</A>.
</DD>
</DL>
<H4>Return Values</H4>
<P>Returns zero if the request succeeds or a negative error number if an error occurs. Possible return values are: </P>
<P>PHONEERR_INVALPHONEHANDLE, PHONEERR_NOMEM, PHONEERR_INVALPHONESTATE, PHONEERR_RESOURCEUNAVAIL, PHONEERR_INVALBUTTONMODE, PHONEERR_OPERATIONFAILED, PHONEERR_INVALBUTTONSTATE, PHONEERR_UNINITIALIZED, PHONEERR_OPERATIONUNAVAIL.</P>
<H4>Remarks</H4>
<P>An application can use the <B>phoneSetStatusMessages</B> function to enable or disable the generation of the corresponding messages. All phone status messages are disabled by default. </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 1.3 or later.<BR>
<B> Header: </B>Declared in Tapi.h.<BR>
<B> Library: </B>Use Tapi32.lib.</P>
<H4>See Also</H4>
<P><A HREF="quickref_1okl.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/quickref_1okl.htm">TAPI 2.2 Reference Overview</A>, <A HREF="quickref_4rub.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/quickref_4rub.htm">Supplementary Phone Service Functions</A>, <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="struc2_8rua.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_8rua.htm"><B>PHONECAPS</B></A>, <A HREF="func2_3l6b.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_3l6b.htm"><B>phoneGetDevCaps</B></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>, <A HREF="func2_9o6m.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_9o6m.htm"><B>phoneOpen</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 + -