📄 struc2_3do2.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>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这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上. \n\n你想从服务器打开它吗?'))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这个文件不能通过 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.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这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上. \n\n你想从服务器打开它吗?'))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这个文件不能通过 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 + -