?? struc2_3do2.htm
字號(hào):
<!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>PHONESTATUS</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="PHONESTATUS">
<META NAME="MS-HAID" CONTENT="_tapi2_phonestatus_str">
</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_phonestatus_str"></A>PHONESTATUS</H1>
<P>The <B>PHONESTATUS</B> structure describes the current status of a phone device. The <A HREF="func2_7usz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_7usz.htm"><B>phoneGetStatus</B></A> and <A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/tspi21/func3_0v5f.htm \n\n這個(gè)文件不能通過(guò) Teleport Pro 取回, 因?yàn)?地址在一個(gè)域或?yàn)樗拈_(kāi)始地址設(shè)定的邊界的外部路徑上. \n\n你想從服務(wù)器打開(kāi)它嗎?'))window.location='http://msdn.microsoft.com/library/psdk/tspi21/func3_0v5f.htm'" tppabs="http://msdn.microsoft.com/library/psdk/tspi21/func3_0v5f.htm"><B>TSPI_phoneGetStatus</B></A> functions return this structure.</P>
<PRE class=syntax>typedef struct phonestatus_tag {
DWORD dwTotalSize;
DWORD dwNeededSize;
DWORD dwUsedSize;
DWORD dwStatusFlags;
DWORD dwNumOwners;
DWORD dwNumMonitors;
DWORD dwRingMode;
DWORD dwRingVolume;
DWORD dwHandsetHookSwitchMode;
DWORD dwHandsetVolume;
DWORD dwHandsetGain;
DWORD dwSpeakerHookSwitchMode;
DWORD dwSpeakerVolume;
DWORD dwSpeakerGain;
DWORD dwHeadsetHookSwitchMode;
DWORD dwHeadsetVolume;
DWORD dwHeadsetGain;
DWORD dwDisplaySize;
DWORD dwDisplayOffset;
DWORD dwLampModesSize;
DWORD dwLampModesOffset;
DWORD dwOwnerNameSize;
DWORD dwOwnerNameOffset;
DWORD dwDevSpecificSize;
DWORD dwDevSpecificOffset;
DWORD dwPhoneFeatures;
} PHONESTATUS, FAR *LPPHONESTATUS; </PRE>
<H4>Members</H4>
<DL>
<DT><B>dwTotalSize</B> </DT>
<DD>The total size, in bytes, allocated to this data structure. </DD>
<DT><B>dwNeededSize</B> </DT>
<DD>The size, in bytes, for this data structure that is needed to hold all the returned information. </DD>
<DT><B>dwUsedSize</B> </DT>
<DD>The size, in bytes, of the portion of this data structure that contains useful information. </DD>
<DT><B>dwStatusFlags</B> </DT>
<DD>Provides a set of status flags for this phone device. This member uses one of the <A HREF="constnts_18xf.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_18xf.htm">PHONESTATUSFLAGS_ Constants</A>.</DD>
<DT><B>dwNumOwners</B> </DT>
<DD>The number of application modules with owner privilege for the phone. </DD>
<DT><B>dwNumMonitors</B> </DT>
<DD>The number of application modules with monitor privilege for the phone. </DD>
<DT><B>dwRingMode</B> </DT>
<DD>The current ring mode of a phone device. </DD>
<DT><B>dwRingVolume</B> </DT>
<DD>The current ring volume of a phone device. This is a value between 0x00000000 (silence) and 0x0000FFFF (maximum volume). </DD>
<DT><B>dwHandsetHookSwitchMode</B> </DT>
<DD>The current hookswitch mode of the phone's handset. This member uses one of the <A HREF="constnts_0yyc.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_0yyc.htm">PHONEHOOKSWITCHMODE_ Constants</A>. </DD>
<DT><B>dwHandsetVolume</B> </DT>
<DD>The current speaker volume of the phone's handset device. This is a value between 0x00000000 (silence) and 0x0000FFFF (maximum volume). </DD>
<DT><B>dwHandsetGain</B> </DT>
<DD>The current microphone gain of the phone's handset device. This is a value between 0x00000000 (silence) and 0x0000FFFF (maximum gain). </DD>
<DT><B>dwSpeakerHookSwitchMode</B> </DT>
<DD>The current hookswitch mode of the phone's speakerphone. This member uses one of the <A HREF="constnts_0yyc.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_0yyc.htm">PHONEHOOKSWITCHMODE_ Constants</A>. </DD>
<DT><B>dwSpeakerVolume</B> </DT>
<DD>The current speaker volume of the phone's speaker device. This is a value between 0x00000000 (silence) and 0x0000FFFF (maximum volume). </DD>
<DT><B>dwSpeakerGain</B> </DT>
<DD>The current microphone gain of the phone's speaker device. This is a value between 0x00000000 (silence) and 0x0000FFFF (maximum gain). </DD>
<DT><B>dwHeadsetHookSwitchMode</B> </DT>
<DD>The current hookswitch mode of the phone's headset. This member uses one of the <A HREF="constnts_0yyc.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_0yyc.htm">PHONEHOOKSWITCHMODE_ Constants</A>. </DD>
<DT><B>dwHeadsetVolume</B> </DT>
<DD>The current speaker volume of the phone's headset device. This is a value between 0x00000000 (silence) and 0x0000FFFF (maximum volume). </DD>
<DT><B>dwHeadsetGain</B> </DT>
<DD>The current microphone gain of the phone's headset device. This is a value between 0x00000000 (silence) and 0x0000FFFF (maximum gain). </DD>
<DT><B>dwDisplaySize</B> </DT>
<DT><B>dwDisplayOffset</B> </DT>
<DD>The size, in bytes, of the variably sized field containing the phone's current display information, and the offset, in bytes, from the beginning of this data structure. </DD>
<DT><B>dwLampModesSize</B> </DT>
<DT><B>dwLampModesOffset</B> </DT>
<DD>The size, in bytes, of the variably sized field containing the phone's current lamp modes, and the offset, in bytes, from the beginning of this data structure. </DD>
<DT><B>dwOwnerNameSize</B> </DT>
<DT><B>dwOwnerNameOffset</B> </DT>
<DD>The size, in bytes, of the variably sized field containing the name of the application that is the current owner of the phone device, and the offset, in bytes, from the beginning of this data structure. The name is the application name provided by the application when it invoked with <A HREF="func2_36g5.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_36g5.htm"><B>phoneInitialize</B></A> or <A HREF="func2_1tbs.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_1tbs.htm"><B>phoneInitializeEx</B></A>. If no application name was supplied, the application's filename is used instead. If the phone currently has no owner, <B>dwOwnerNameSize</B> is zero. </DD>
<DT><B>dwDevSpecificSize</B> </DT>
<DT><B>dwDevSpecificOffset</B> </DT>
<DD>The size, in bytes, of the variably sized device-specific field, and the offset, in bytes, from the beginning of this data structure. </DD>
<DT><B>dwPhoneFeatures</B> </DT>
<DD>These flags indicate which Telephony API functions can be invoked on the phone, considering the availability of the feature in the device capabilities, the current device state, and device ownership of the invoking application. A zero indicates the corresponding feature cannot be invoked by the application on the phone in its current state; a one indicates the feature can be invoked. This member uses one or more of the <A HREF="constnts_1vg3.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_1vg3.htm">PHONEFEATURE_ Constants</A>.
</DD>
</DL>
<H4>Remarks</H4>
<P>Device-specific extensions should use the <B>DevSpecific </B>(<B>dwDevSpecificSize</B> and <B>dwDevSpecificOffset</B>) variably sized area of this data structure. </P>
<P>The <B>dwPhoneFeatures</B> member is available only to applications that open the phone device with an API version of 2.0 or later. </P>
<H4><A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/sdkintro/guide_927n.htm \n\n這個(gè)文件不能通過(guò) Teleport Pro 取回, 因?yàn)?地址在一個(gè)域或?yàn)樗拈_(kāi)始地址設(shè)定的邊界的外部路徑上. \n\n你想從服務(wù)器打開(kāi)它嗎?'))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.4 or later.<BR>
<B> 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_7usz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_7usz.htm"><B>phoneGetStatus</B></A>, <A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/tspi21/func3_0v5f.htm \n\n這個(gè)文件不能通過(guò) Teleport Pro 取回, 因?yàn)?地址在一個(gè)域或?yàn)樗拈_(kāi)始地址設(shè)定的邊界的外部路徑上. \n\n你想從服務(wù)器打開(kāi)它嗎?'))window.location='http://msdn.microsoft.com/library/psdk/tspi21/func3_0v5f.htm'" tppabs="http://msdn.microsoft.com/library/psdk/tspi21/func3_0v5f.htm"><B>TSPI_phoneGetStatus</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這個(gè)文件不能通過(guò) Teleport Pro 取回, 因?yàn)?地址在一個(gè)域或?yàn)樗拈_(kāi)始地址設(shè)定的邊界的外部路徑上. \n\n你想從服務(wù)器打開(kāi)它嗎?'))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>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -