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

📄 struc2_30mq.htm

📁 TAPI Exampple
💻 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>PHONEBUTTONINFO</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="PHONEBUTTONINFO">
<META NAME="MS-HAID" CONTENT="_tapi2_phonebuttoninfo_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_phonebuttoninfo_str"></A>PHONEBUTTONINFO</H1>

<P>The <B>PHONEBUTTONINFO</B> structure contains information about a button on a phone device. This structure is used by multiple TAPI and TSPI functions.</P>

<PRE class=syntax>typedef struct phonebuttoninfo_tag {
  DWORD  dwTotalSize;
  DWORD  dwNeededSize;
  DWORD  dwUsedSize;
  DWORD  dwButtonMode;
  DWORD  dwButtonFunction;
  DWORD  dwButtonTextSize;
  DWORD  dwButtonTextOffset;
  DWORD  dwDevSpecificSize;
  DWORD  dwDevSpecificOffset;
  DWORD  dwButtonState;
} PHONEBUTTONINFO, FAR *LPPHONEBUTTONINFO; </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>dwButtonMode</B> </DT>

<DD>The mode or general usage class of the button. This member uses one of the <A HREF="constnts_5aib.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_5aib.htm">PHONEBUTTONMODE_ Constants</A>. </DD>

<DT><B>dwButtonFunction</B> </DT>

<DD>The function assigned to the button. This member uses one of the <A HREF="constnts_1a0j.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_1a0j.htm">PHONEBUTTONFUNCTION_ Constants</A>.</DD>

<DT><B>dwButtonTextSize</B> </DT>

<DT><B>dwButtonTextOffset</B> </DT>

<DD>The size, in bytes, of the variably sized field containing descriptive text for this button, and the offset, in bytes, from the beginning of this data structure. The format of this information is as specified in the <B>dwStringFormat</B> member of the phone's device capabilities. </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>dwButtonState</B> </DT>

<DD>For the <A HREF="func2_4p2n.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_4p2n.htm"><B>phoneGetButtonInfo</B></A> function, this field indicates the current state of the button, using the <A HREF="constnts_49yr.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_49yr.htm">PHONEBUTTONSTATE_ Constants</A>. This field is ignored by the <A HREF="func2_9gbz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_9gbz.htm"><B>phoneSetButtonInfo</B></A> function. 
</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>Older applications are compiled without this field in the <B>PHONEBUTTONINFO</B> structure, and using a SIZEOF PHONEBUTTONINFO smaller than the new size. The application passes in a <I>dwAPIVersion</I> parameter with the <A HREF="func2_9o6m.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_9o6m.htm"><B>phoneOpen</B></A> function, which can be used for guidance by TAPI in handling this situation. If the application passes in a <B>dwTotalSize</B> less than the size of the fixed portion of the structure as defined in the specified <B>dwAPIVersion</B>, PHONEERR_STRUCTURETOOSMALL is returned. If sufficient memory has been allocated by the application, before calling the <A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/tspi21/func3_0sj3.htm  \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上.  \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/library/psdk/tspi21/func3_0sj3.htm'" tppabs="http://msdn.microsoft.com/library/psdk/tspi21/func3_0sj3.htm"><B>TSPI_phoneGetButtonInfo</B></A> function, TAPI sets the <B>dwNeededSize</B> and <B>dwUsedSize</B> members to the fixed size of the structure as it existed in the specified API version. </P>

<P>New service providers (which support the new API version) must examine the API version passed in. If the API version is less than the highest version supported by the provider, the service provider must not fill in fields not supported in older API versions, as these would fall in the variable portion of the older structure. </P>

<P>New applications must be cognizant of the API version negotiated, and not examine the contents of fields in the fixed portion beyond the original end of the fixed portion of the structure for the negotiated API version. </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>&nbsp;&nbsp;Windows NT/2000: </B>Requires Windows NT 4.0 SP3 or later.<BR>
<B>&nbsp;&nbsp;Windows 95/98: </B>Requires Windows 95 or later.<BR>
<B>&nbsp;&nbsp;Version: </B>Requires TAPI 1.4 or later.<BR>
<B>&nbsp;&nbsp;Header: </B>Declared in Tapi.h.</P>

<H4>See Also</H4>

<P><A HREF="func2_4p2n.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_4p2n.htm"><B>phoneGetButtonInfo</B></A>, <A HREF="func2_9gbz.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_9gbz.htm"><B>phoneSetButtonInfo</B></A>, <A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/tspi21/func3_0sj3.htm  \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上.  \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/library/psdk/tspi21/func3_0sj3.htm'" tppabs="http://msdn.microsoft.com/library/psdk/tspi21/func3_0sj3.htm"><B>TSPI_phoneGetButtonInfo</B></A>, <A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/tspi21/func3_5jsf.htm  \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上.  \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/library/psdk/tspi21/func3_5jsf.htm'" tppabs="http://msdn.microsoft.com/library/psdk/tspi21/func3_5jsf.htm"><B>TSPI_phoneSetButtonInfo</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">&#169; 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 + -