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

📄 struc2_8rua.htm

📁 TAPI Exampple
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!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>PHONECAPS</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="PHONECAPS">
<META NAME="MS-HAID" CONTENT="_tapi2_phonecaps_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_phonecaps_str"></A>PHONECAPS</H1>

<P>The <B>PHONECAPS</B> structure describes the capabilities of a phone device. The <A HREF="func2_3l6b.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_3l6b.htm"><B>phoneGetDevCaps</B></A> and <A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/tspi21/func3_67ar.htm  \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上.  \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/library/psdk/tspi21/func3_67ar.htm'" tppabs="http://msdn.microsoft.com/library/psdk/tspi21/func3_67ar.htm"><B>TSPI_phoneGetDevCaps</B></A> functions return this structure.</P>

<PRE class=syntax>typedef struct phonecaps_tag {
  DWORD  dwTotalSize;
  DWORD  dwNeededSize;
  DWORD  dwUsedSize;
  DWORD  dwProviderInfoSize;
  DWORD  dwProviderInfoOffset;
  DWORD  dwPhoneInfoSize;
  DWORD  dwPhoneInfoOffset;
  DWORD  dwPermanentPhoneID;
  DWORD  dwPhoneNameSize;
  DWORD  dwPhoneNameOffset;
  DWORD  dwStringFormat;
  DWORD  dwPhoneStates;
  DWORD  dwHookSwitchDevs;
  DWORD  dwHandsetHookSwitchModes;
  DWORD  dwSpeakerHookSwitchModes;
  DWORD  dwHeadsetHookSwitchModes;
  DWORD  dwVolumeFlags;
  DWORD  dwGainFlags;
  DWORD  dwDisplayNumRows;
  DWORD  dwDisplayNumColumns;
  DWORD  dwNumRingModes;
  DWORD  dwNumButtonLamps;
  DWORD  dwButtonModesSize;
  DWORD  dwButtonModesOffset;
  DWORD  dwButtonFunctionsSize;
  DWORD  dwButtonFunctionsOffset;
  DWORD  dwLampModesSize;
  DWORD  dwLampModesOffset;
  DWORD  dwNumSetData;
  DWORD  dwSetDataSize;
  DWORD  dwSetDataOffset;
  DWORD  dwNumGetData;
  DWORD  dwGetDataSize;
  DWORD  dwGetDataOffset;
  DWORD  dwDevSpecificSize; 
  DWORD  dwDevSpecificOffset;
  DWORD dwDeviceClassesSize;               //TAPI 2.0
  DWORD dwDeviceClassesOffset;             //TAPI 2.0
  DWORD dwPhoneFeatures;                   //TAPI 2.0
  DWORD dwSettableHandsetHookSwitchModes;  //TAPI 2.0
  DWORD dwSettableSpeakerHookSwitchModes;  //TAPI 2.0
  DWORD dwSettableHeadsetHookSwitchModes;  //TAPI 2.0
  DWORD dwMonitoredHandsetHookSwitchModes; //TAPI 2.0
  DWORD dwMonitoredSpeakerHookSwitchModes; //TAPI 2.0
  DWORD dwMonitoredHeadsetHookSwitchModes; //TAPI 2.0
  GUID PermanentPhoneGuid;                 //TAPI 2.2
} PHONECAPS, FAR *LPPHONECAPS; </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>dwProviderInfoSize</B> </DT>

<DT><B>dwProviderInfoOffset</B> </DT>

<DD>The size, in bytes, of the variably sized field containing service provider-specific information, and the offset, in bytes, from the beginning of this data structure. 

<P>The <B>dwProviderInfoSize/Offset</B> member provides information about the provider hardware and/or software, such as the vendor name and version numbers of hardware and software. This information can be useful when a user needs to call customer service with problems regarding the provider. 
</DD>

<DT><B>dwPhoneInfoSize</B> </DT>

<DT><B>dwPhoneInfoOffset</B> </DT>

<DD>The size, in bytes, of the variably sized device field containing phone-specific information, and the offset, in bytes, from the beginning of this data structure. 

<P>The <B>dwPhoneInfoSize/Offset</B> member provides information about the attached phone device, such as the phone device manufacturer, the model name, the software version, and so on. This information can be useful when a user needs to call customer service with problems regarding the phone. 
</DD>

<DT><B>dwPermanentPhoneID</B> </DT>

<DD>The permanent <B>DWORD</B> identifier by which the phone device is known in the system's configuration. </DD>

<DT><B>dwPhoneNameSize</B> </DT>

<DT><B>dwPhoneNameOffset</B> </DT>

<DD>The size, in bytes, of the variably sized device field containing a user configurable name for this phone device, and the offset, in bytes, from the beginning of this data structure This name can be configured by the user when configuring the phone device's service provider and is provided for the user's convenience. </DD>

<DT><B>dwStringFormat</B> </DT>

<DD>The string format to be used with this phone device. This member uses one of the <A HREF="constnts_1cab.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_1cab.htm">STRINGFORMAT_ Constants</A>. </DD>

<DT><B>dwPhoneStates</B> </DT>

<DD>The state changes for this phone device for which the application can be notified in a <A HREF="msgs_3f8l.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_3f8l.htm">PHONE_STATE</A> message. This member 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><B>dwHookSwitchDevs</B> </DT>

<DD>Specifies the phone's hookswitch devices. This member uses one of the <A HREF="constnts_3tgz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_3tgz.htm">PHONEHOOKSWITCHDEV_ Constants</A>. </DD>

<DT><B>dwHandsetHookSwitchModes</B> </DT>

<DT><B>dwSpeakerHookSwitchModes</B> </DT>

<DT><B>dwHeadsetHookSwitchModes</B> </DT>

<DD>Specifies the phone's hookswitch mode capabilities of the handset, speaker, or headset, respectively. The member is only meaningful if the hookswitch device is listed in <B>dwHookSwitchDevs</B>. 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>dwVolumeFlags</B> </DT>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -