?? struc2_30mq.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>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這個(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_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這個(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_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這個(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_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這個(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_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這個(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 + -