📄 sim programming with the _net compact framework.mht
字号:
><A=20
href=3D"http://msdn.microsoft.com/en-us/library/ms123401.aspx" =
target=3D_top>MSDN=20
Library</A></LI></UL></DIV></DIV></DIV>
<DIV onmouseup=3Dra_resizeStop() class=3Dsplitter=20
onmousedown=3D"ra_resizeStart(event,this,'ctl00_rs1_raLeft')"=20
id=3Dctl00_rs1_raSplitter=20
ondblclick=3D"ra_OpenCollapse('ctl00_rs1_raSplitter','ctl00_rs1_raLeft')"=
=20
onmouseover=3DHighlightSplitterBar(this.id,0);=20
title=3D"Click and drag to resize. Double click or press 't' to toggle =
visibility."=20
style=3D"LEFT: 300px" =
onmouseout=3DHighlightSplitterBar(this.id,1);></DIV>
<DIV class=3DrightSection id=3Dctl00_rs1_raRight=20
onkeyup=3D' ra_keyPress(window.event, =
"ctl00_rs1_raSplitter","ctl00_rs1_raLeft")'>
<DIV>
<DIV class=3DEyebrowMenuBar id=3Dctl00_rs1_eb1_Panel1>
<DIV class=3Dstat id=3Dctl00$rs1$eb1$ctl00 style=3D"POSITION: =
relative"><A title=3DMSDN=20
href=3D"http://msdn.microsoft.com/en-us/ms348103.aspx">MSDN</A>
<DIV class=3Dpopup id=3Dctl00$rs1$eb1$ctl00_Popup=20
style=3D"LEFT: -65534px; VISIBILITY: hidden; POSITION: absolute"><IMG =
class=3Dspin=20
src=3D"http://i.msdn.microsoft.com/Platform/Controls/Eyebrow/resources/s.=
gif"><SPAN=20
name=3D"http://msdn.microsoft.com/en-us/library/36cf08ac-18d1-4fe0-abc8-4=
66852a0f9c7(n).aspx">Please=20
Wait</SPAN></DIV>
<DIV class=3DTFlyPopupAnimate id=3Dctl00$rs1$eb1$ctl00_Anim></DIV></DIV>
<DIV class=3Dstat id=3Dctl00$rs1$eb1$ctl01 style=3D"POSITION: =
relative"><A=20
title=3D"MSDN Library"=20
href=3D"http://msdn.microsoft.com/en-us/library/ms123401.aspx">MSDN =
Library</A>
<DIV class=3Dpopup id=3Dctl00$rs1$eb1$ctl01_Popup=20
style=3D"LEFT: -65534px; VISIBILITY: hidden; POSITION: absolute"><IMG =
class=3Dspin=20
src=3D"http://i.msdn.microsoft.com/Platform/Controls/Eyebrow/resources/s.=
gif"><SPAN=20
name=3D"http://msdn.microsoft.com/en-us/library/ms310241(n).aspx">Please =
Wait</SPAN></DIV>
<DIV class=3DTFlyPopupAnimate id=3Dctl00$rs1$eb1$ctl01_Anim></DIV></DIV>
<DIV class=3Dstat id=3Dctl00$rs1$eb1$ctl02 style=3D"POSITION: =
relative"><A=20
title=3D"Mobile and Embedded Development"=20
href=3D"http://msdn.microsoft.com/en-us/library/ms376734.aspx">Mobile =
and Embedded=20
Development</A>
<DIV class=3Dpopup id=3Dctl00$rs1$eb1$ctl02_Popup=20
style=3D"LEFT: -65534px; VISIBILITY: hidden; POSITION: absolute"><IMG =
class=3Dspin=20
src=3D"http://i.msdn.microsoft.com/Platform/Controls/Eyebrow/resources/s.=
gif"><SPAN=20
name=3D"http://msdn.microsoft.com/en-us/library/ms376734(n).aspx">Please =
Wait</SPAN></DIV>
<DIV class=3DTFlyPopupAnimate id=3Dctl00$rs1$eb1$ctl02_Anim></DIV></DIV>
<DIV class=3Dstat id=3Dctl00$rs1$eb1$ctl03 style=3D"POSITION: =
relative"><A=20
title=3D"Windows Mobile"=20
href=3D"http://msdn.microsoft.com/en-us/library/bb847935.aspx">Windows =
Mobile</A>
<DIV class=3Dpopup id=3Dctl00$rs1$eb1$ctl03_Popup=20
style=3D"LEFT: -65534px; VISIBILITY: hidden; POSITION: absolute"><IMG =
class=3Dspin=20
src=3D"http://i.msdn.microsoft.com/Platform/Controls/Eyebrow/resources/s.=
gif"><SPAN=20
name=3D"http://msdn.microsoft.com/en-us/library/ms376739(n).aspx">Please =
Wait</SPAN></DIV>
<DIV class=3DTFlyPopupAnimate id=3Dctl00$rs1$eb1$ctl03_Anim></DIV></DIV>
<DIV class=3Dstat id=3Dctl00$rs1$eb1$ctl04 style=3D"POSITION: =
relative"><A=20
title=3D"Technical Articles"=20
href=3D"http://msdn.microsoft.com/en-us/library/ms838215.aspx">Technical =
Articles</A>
<DIV class=3Dpopup id=3Dctl00$rs1$eb1$ctl04_Popup=20
style=3D"LEFT: -65534px; VISIBILITY: hidden; POSITION: absolute"><IMG =
class=3Dspin=20
src=3D"http://i.msdn.microsoft.com/Platform/Controls/Eyebrow/resources/s.=
gif"><SPAN=20
name=3D"http://msdn.microsoft.com/en-us/library/ms376785(n).aspx">Please =
Wait</SPAN></DIV>
<DIV class=3DTFlyPopupAnimate id=3Dctl00$rs1$eb1$ctl04_Anim></DIV></DIV>
<DIV class=3Dstat id=3Dctl00$rs1$eb1$ctl05 style=3D"POSITION: =
relative"><A=20
title=3D"Windows Mobile Programming"=20
href=3D"http://msdn.microsoft.com/en-us/library/aa145802.aspx">Windows =
Mobile=20
Programming</A>
<DIV class=3Dpopup id=3Dctl00$rs1$eb1$ctl05_Popup=20
style=3D"LEFT: -65534px; VISIBILITY: hidden; POSITION: absolute"><IMG =
class=3Dspin=20
src=3D"http://i.msdn.microsoft.com/Platform/Controls/Eyebrow/resources/s.=
gif"><SPAN=20
name=3D"http://msdn.microsoft.com/en-us/library/aa145802(n).aspx">Please =
Wait</SPAN></DIV>
<DIV class=3DTFlyPopupAnimate id=3Dctl00$rs1$eb1$ctl05_Anim></DIV></DIV>
<DIV class=3Dnochildstat><STRONG> SIM Programming with the .NET=20
Compa...</STRONG></DIV><SPAN=20
style=3D"CLEAR: both; DISPLAY: block; FLOAT: none"></SPAN></DIV></DIV>
<DIV class=3DRightPanel>
<DIV class=3DContentBar=20
style=3D"PADDING-LEFT: 7px; PADDING-BOTTOM: 20px; PADDING-TOP: 7px">
<SCRIPT type=3Dtext/Javascript>
</SCRIPT>
<STYLE type=3Dtext/css>.vb {
DISPLAY: none
}
.cs {
DISPLAY: none
}
.cpp {
DISPLAY: none
}
.nu {
DISPLAY: none
}
</STYLE>
<STYLE id=3DLanguageSpecificTextStyle type=3Dtext/css>.nu {
DISPLAY: inline
}
</STYLE>
<DIV class=3DDropDownFilterStyle=20
id=3Dctl00_rs1_DropDownFilter_DropDownFilterMain><IMG =
class=3DMTPS_DropDownImage=20
id=3Dctl00_rs1_DropDownFilter_MTPS_DD_ImageArrow=20
onmouseover=3DChangeDropDownImage(true); title=3D"Language Filter"=20
style=3D"BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; =
BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"=20
onclick=3DDDFilterOn(event); onmouseout=3DChangeDropDownImage(false);=20
alt=3D"Language Filter"=20
src=3D"http://i.msdn.microsoft.com/Platform/Controls/DropDownFilter/resou=
rces/arrow-off.gif"><A=20
class=3DDropDownFilterOff =
id=3Dctl00_rs1_DropDownFilter_Mtps_DropDownFilterText=20
onmouseover=3DChangeDropDownImage(true); title=3D"Language Filter"=20
onclick=3DDDFilterOn(event); onmouseout=3DChangeDropDownImage(false);=20
href=3D"http://msdn.microsoft.com/en-us/library/ms839358.aspx#Mtps_DropDo=
wnFilterText">Language=20
Filter</A>
<DIV class=3DMTPS_PopupDivPanel =
id=3Dctl00_rs1_DropDownFilter_Mtps_DropDownPopUp=20
style=3D"DISPLAY: none">
<DIV class=3DDivCbxLabelLanguage><INPUT=20
id=3Dctl00_rs1_DropDownFilter_DropDownLngFilterCtrl=20
onclick=3DSetLangFilter(null,false); type=3Dcheckbox CHECKED =
value=3D"Visual Basic"=20
name=3Dctl00$rs1$DropDownFilter$DropDownLngFilterCtrl=20
arrayValue=3D"visualbasic"><SPAN=20
id=3Dctl00_rs1_DropDownFilter_ctl00_rs1_DropDownFilter_DropDownLngFilterC=
trl_0=20
title=3D"Visual Basic">Visual Basic<BR></SPAN></DIV>
<DIV class=3DDivCbxLabelLanguage><INPUT=20
id=3Dctl00_rs1_DropDownFilter_DropDownLngFilterCtrl=20
onclick=3DSetLangFilter(null,false); type=3Dcheckbox CHECKED value=3DC#=20
name=3Dctl00$rs1$DropDownFilter$DropDownLngFilterCtrl =
arrayValue=3D"csharp"><SPAN=20
id=3Dctl00_rs1_DropDownFilter_ctl00_rs1_DropDownFilter_DropDownLngFilterC=
trl_1=20
title=3DC#>C#<BR></SPAN></DIV>
<DIV class=3DDivCbxLabelLanguage><INPUT=20
id=3Dctl00_rs1_DropDownFilter_DropDownLngFilterCtrl=20
onclick=3DSetLangFilter(null,false); type=3Dcheckbox CHECKED value=3DC++ =
name=3Dctl00$rs1$DropDownFilter$DropDownLngFilterCtrl=20
arrayValue=3D"managedcplusplus"><SPAN=20
id=3Dctl00_rs1_DropDownFilter_ctl00_rs1_DropDownFilter_DropDownLngFilterC=
trl_2=20
title=3DC++>C++<BR></SPAN></DIV>
<DIV class=3DDivCbxLabelLanguage><INPUT=20
id=3Dctl00_rs1_DropDownFilter_DropDownLngFilterCtrl=20
onclick=3DSetLangFilter(null,false); type=3Dcheckbox CHECKED value=3DJ#=20
name=3Dctl00$rs1$DropDownFilter$DropDownLngFilterCtrl =
arrayValue=3D"jsharp"><SPAN=20
id=3Dctl00_rs1_DropDownFilter_ctl00_rs1_DropDownFilter_DropDownLngFilterC=
trl_3=20
title=3DJ#>J#<BR></SPAN></DIV>
<DIV class=3DDivCbxLabelLanguage><INPUT=20
id=3Dctl00_rs1_DropDownFilter_DropDownLngFilterCtrl=20
onclick=3DSetLangFilter(null,false); type=3Dcheckbox CHECKED =
value=3DJScript=20
name=3Dctl00$rs1$DropDownFilter$DropDownLngFilterCtrl =
arrayValue=3D"jscript"><SPAN=20
id=3Dctl00_rs1_DropDownFilter_ctl00_rs1_DropDownFilter_DropDownLngFilterC=
trl_4=20
title=3DJScript>JScript<BR></SPAN></DIV>
<DIV class=3DDivCbxLabelLanguage><INPUT=20
id=3Dctl00_rs1_DropDownFilter_DropDownLngFilterCtrl=20
onclick=3DSetLangFilter(null,false); type=3Dcheckbox CHECKED =
value=3DXAML=20
name=3Dctl00$rs1$DropDownFilter$DropDownLngFilterCtrl =
arrayValue=3D"xaml"><SPAN=20
id=3Dctl00_rs1_DropDownFilter_ctl00_rs1_DropDownFilter_DropDownLngFilterC=
trl_5=20
title=3DXAML>XAML<BR></SPAN></DIV></DIV>
<SCRIPT type=3Dtext/Javascript>
var =
ArrowOffPath=3D"http://i.msdn.microsoft.com/Platform/Controls/DropDownFil=
ter/resources/arrow-off.gif";
var =
ArrowOnPath=3D"http://i.msdn.microsoft.com/Platform/Controls/DropDownFilt=
er/resources/arrow-on.gif";
var strConstLangFilterAll =3D"All";
var strConstLangFilterMulti =3D"Multiple";
var strConstLangFilterNone =3D"None";
var strConstLangFilterText =3D"Language Filter";
var oMTPS_DD_ImgArrow =3D =
document.getElementById("ctl00_rs1_DropDownFilter_MTPS_DD_ImageArrow");
var oMTPS_DD_PanelLink =3D =
document.getElementById("ctl00_rs1_DropDownFilter_Mtps_DropDownFilterText=
");
var oMTPS_DD_Div =3D =
document.getElementById("ctl00_rs1_DropDownFilter_DropDownFilterMain");
var oMTPS_DD_PopUpDiv =3D =
document.getElementById("ctl00_rs1_DropDownFilter_Mtps_DropDownPopUp");
</SCRIPT>
</DIV></DIV>
<DIV class=3DContentArea>
<DIV class=3Dtopic>
<DIV=20
class=3DmajorTitle>Pocket PC (General) Technical Arti=
cles</DIV>
<DIV class=3Dtitle>SIM Programming with the .NET Compact =
Framework</DIV><!--Content type: PSDK_8. Transform: =
msdneditorial2mtps.xslt.--><A=20
name=3Dsim_programming><!----></A>
<DIV id=3Dnstext valign=3D"bottom"> =20
<P>Andreas Sj=C3=B6str=C3=B6m<BR>Businessanyplace.net</P>
<P>May 2003</P>
<P>Applies to:<BR> Microsoft=C2=AE .NET Compact=20
Framework<BR> Microsoft Windows=C2=AE Powered =
Pocket PC=20
Phone</P>
<P><B>Summary:</B> Learn how to use the SIM Manager API, the Interop =
Services of=20
the Compact Framework and the .NET development environment to create a =
connected=20
application for the Pocket PC Phone. (6 printed pages)</P>
<P>Download <A id=3Dctl00_rs1_mainContentContainer_ctl01=20
onclick=3D"javascript:Track('ctl00_rs1_mainContentContainer_ctl00|ctl00_r=
s1_mainContentContainer_ctl01',this);"=20
href=3D"http://download.microsoft.com/download/9/7/c/97c0a52f-c7f0-441b-9=
f47-f921702c30aa/sim_programming.exe">sim_programming.exe</A></P>
<H4 class=3DdtH1>Contents</H4>
<P><A=20
href=3D"http://msdn.microsoft.com/en-us/library/ms839358.aspx#sim_program=
ming_topic1">SIM=20
Cards</A> <BR><A=20
href=3D"http://msdn.microsoft.com/en-us/library/ms839358.aspx#sim_program=
ming_topic2">SIM=20
Manager API</A> <BR><A=20
href=3D"http://msdn.microsoft.com/en-us/library/ms839358.aspx#sim_program=
ming_topic3">Calling=20
Windows API Using Compact Framework</A> <BR><A=20
href=3D"http://msdn.microsoft.com/en-us/library/ms839358.aspx#sim_program=
ming_topic4">SIM=20
Anyplace Sample</A> <BR><A=20
href=3D"http://msdn.microsoft.com/en-us/library/ms839358.aspx#sim_program=
ming_topic5">Code=20
Walkthrough</A> <BR><A=20
href=3D"http://msdn.microsoft.com/en-us/library/ms839358.aspx#sim_program=
ming_topic6">Conclusion</A></P>
<H2 class=3DdtH1><A name=3Dsim_programming_topic1><!----></A>SIM =
Cards</H2>
<P>The Pocket PC Phone's built-in phone capabilities make it a premier =
citizen=20
of the world of mobile phones, and you can take advantage of this when =
creating=20
new connected applications. Like all mobile phones, it needs a =
Subscriber=20
Identity Module, or SIM card, to make calls=E2=80=94except emergency =
calls, which can be=20
made without one. As an example, a connected application could take =
advantage of=20
the security capabilities of SIM cards by checking a user's Personal=20
Identification Number code (PIN) before initiating a connection.</P>
<P>The SIM card holds the phone number of the mobile phone and identity =
of the=20
operator who provided it. In addition, it stores phone numbers with =
names=20
attached to them and as well as a number of Short Message Service =
messages. The=20
SIM card holds not only memory but also a Central Processing Unit that =
enables=20
the card to handle security and encryption. You usually need to "log on" =
to your=20
SIM card using your PIN code.</P>
<H2 class=3DdtH1><A name=3Dsim_programming_topic2><!----></A>SIM Manager =
API</H2>
<P>On the Pocket PC Phone you can access the information on the SIM card =
using a=20
number of Windows CE API calls with the collective name SIM Manager. =
Following=20
are the SIM Manager APIs (grouped by functionality):</P>
<P class=3Dlabel><B>Table 1. SIM Manager APIs</B></P>
<P class=3Dfig><IMG alt=3D""=20
src=3D"http://msdn.microsoft.com/en-us/library/ms839358.sim_programming_0=
1(en-us,MSDN.10).gif"=20
border=3D0></P>
<P>The session starts with a call to SimInitialize that returns a SIM =
handle=20
that is needed in all subsequent calls to the SIM Manager API functions. =
The=20
session is terminated by passing this handle to SimDeinitialize.</P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -