將行動寬頻 WIN32 API 移植到 Windows 執行階段 API 的指導方針
下表列出已淘汰行動寬頻 WIN32 API 的對等Windows 執行階段功能。
IMbnConnection | 對等Windows 執行階段功能 |
---|---|
連線 | ConnectivityManager.AcquireConnectionAsync |
中斷連線 | ConnectionSession.Close |
get_InterfaceID | MobileBroadbandAccount.NetworkAccountId |
GetActivationNetworkError | MobileBroadbandNetwork.ActivationNetworkError |
GetConnectionState | WwanConnectionProfileDetails.GetNetworkRegistrationState |
GetVoiceCallState | MobileBroadbandNetwork.GetVoiceCallSupport, PhoneCallManager.IsCallActive |
IMbnConnectionEvents | |
OnConnectComplete | NetworkStateChangeEventDetails.HasNewWwanRegistrationState - 通知之後,可以從 WwanConnectionProfileDetails.GetNetworkRegistrationState 擷取目前的註冊狀態。 |
OnConnectStateChange | NetworkStateChangeEventDetails.HasNewWwanRegistrationState - 通知之後,可以從 WwanConnectionProfileDetails.GetNetworkRegistrationState 擷取目前的註冊狀態。 |
OnDisconnectComplete | NetworkStateChangeEventDetails.HasNewWwanRegistrationState - 通知之後,可以從 WwanConnectionProfileDetails.GetNetworkRegistrationState 擷取目前的註冊狀態。 |
OnVoiceCallStateChange | PhoneCallManager.CallStateChanged |
IMbnConnectionProfile | |
刪除 | ConnectionProfile.TryDeleteAsync |
GetConnectionProfile | NetworkAdapter.GetConnectedProfileAsync |
GetConnectionProfiles | NetworkInformation.GetConnectionProfiles |
IMbnDeviceService | |
CloseCommandSession | MobileBroadbandDeviceServiceCommandSession.CloseSession |
CloseDataSession | MobileBroadbandDeviceServiceDataSession.CloseSession |
get_DeviceServiceID | MobileBroadbandDeviceService.DeviceServiceId |
OpenCommandSession | MobileBroadbandDeviceService.OpenCommandSession |
OpenDataSession | MobileBroadbandDeviceService.OpenDataSession |
QueryCommand | MobileBroadbandDeviceServiceCommandSession.SendQueryCommandAsync |
QuerySupportedCommands | MobileBroadbandDeviceService.SupportedCommands |
SetCommand | MobileBroadbandDeviceServiceCommandSession.SendSetCommandAsync |
WriteData | MobileBroadbandDeviceServiceDataSession.WriteDataAsync |
IMbnDeviceServicesCoNtext | |
EnumerateDeviceServices | MobileBroadbandDeviceService.SupportedCommands |
get_MaxCommandSize | MobileBroadbandModem.MaxDeviceServiceCommandSizeInBytes |
get_MaxDataSize | MobileBroadbandModem.MaxDeviceServiceDataSizeInByte |
GetDeviceService | MobileBroadbandModem.GetDeviceService |
IMbnDeviceServicesEvents | |
OnReadData | MobileBroadbandDeviceServiceDataSession.DataReceived |
IMbnInterface | |
get_InterfaceID | MobileBroadbandAccount.NetworkAccountId |
GetConnection | 從 AcquireConnectionAsync 取得的 ConnectionSession |
GetHomeProvider | MobileBroadbandModem.GetCurrentConfigurationAsync |
GetInterfaceCapability | MobileBroadbandAccount.CurrentDeviceInformation |
GetReadyState | MobileBroadbandDeviceInformation.NetworkDeviceStatus |
GetSubscriberInformation | MobileBroadbandAccount.CurrentDeviceInformation |
InEmergencyMode | MobileBroadbandModem.IsInEmergencyCallMode |
IMbnInterfaceEvents | |
OnEmergencyModeChange | MobileBroadbandModem.IsInEmergencyCallModeChanged |
OnReadyStateChange | MobileBroadbandNetworkRegistrationStateChange |
OnSubscriberInformationChange | MobileBroadbandAccountUpdatedEventArgs.HasDeviceInformationChanged |
IMbnInterfaceManager | |
GetInterface | MobileBroadbandModem.CurrentAccount |
IMbnInterfaceManagerEvents | |
OnInterfaceArrival | MobileBroadbandAccountWatcher.AccountAdded |
OnInterfaceRemoval | MobileBroadbandAccountWatcher.Account |
IMbnMultiCarrier | |
GetCurrentCellularClass | MobileBroadbandDeviceInformation.CellularClass |
IMbnMultiCarrierEvents | |
OnCurrentCellularClassChange | MobileBroadbandAccountUpdatedEventArgs.HasDeviceInformationChanged |
IMbnPin | |
變更 | MobileBroadbandPin.ChangeAsync |
停用 | MobileBroadbandPin.DisableAsync |
啟用 | MobileBroadbandPin.EnableAsync |
Enter | MobileBroadbandPin.EnterAsync |
get_PinFormat | MobileBroadbandPin.Format |
get_PinLengthMax | MobileBroadbandPin.MaxLength |
get_PinLengthMin | MobileBroadbandPin.MaxLength |
get_PinMode | MobileBroadbandPin.Enabled |
get_PinType | MobileBroadbandPin.Type |
GetPinManager | MobileBroadbandDeviceInformation.PinManager |
疏通 | MobileBroadbandPin.UnblockAsync |
IMbnPinManager | |
GetPin | MobileBroadbandPinManager.GetPin |
GetPinList | MobileBroadbandPinManager.SupportedPins |
GetPinState | MobileBroadbandPin.LockState |
IMbnPinManagerEvents | |
IMbnRadio | |
get_SoftwareRadioState | Radio.GetRadiosAsync – Radio。 狀態 |
SetSoftwareRadioState | Radio.SetStateAsync |
IMbnRadioEvents | |
OnRadioStateChange | Radio.StateChanged |
IMbnRegistration | |
GetAvailableDataClasses | MobileBroadbandDeviceInformation.DataClasses |
GetCurrentDataClass | MobileBroadbandNetwork.RegisteredDataClass |
GetPacketAttachNetworkError | MobileBroadbandNetwork.PacketAttachNetworkError |
GetProviderID | MobileBroadbandNetwork.RegisteredProviderId |
GetProviderName | MobileBroadbandNetwork.RegisteredProviderName |
GetRegisterState | MobileBroadbandNetwork.NetworkRegistrationState |
GetRegistrationNetworkError | MobileBroadbandNetwork.ActivationNetworkError |
IMbnRegistrationEvents | |
OnPacketServiceStateChange | MobileBroadbandNetworkRegistrationStateChange |
OnRegisterStateChange | MobileBroadbandNetworkRegistrationStateChange |
GetSignalStrength | ConnectionProfile.GetSignalBar / MobileBroadbandCellLte.ReferenceSignalReceivedPowerInDBm / MobileBroadbandCellGsm.ReceivedSignalStrengthInDBm |
IMbnSignalEvents | |
IMbnSms | |
GetSmsConfiguration | SmsDevice2.SmscAddress、SmsDevice2.CellularClass、CDMAShortMessageSize 和 MaxMessageIndex 的 None,這不是公用 API 的必要專案。 |
SetSmsConfiguration | SmsDevice2.SmscAddress,不支援其他任何參數 |
SmsSendCdma | 在 ISmsMessageBase 中使用 CellularClass 的 SendMessageAndGetResultAsync |
SmsSendCdmaPdu | SendMessageAndGetResultAsync 在 ISmsMessageBase 中使用 Messagetype 和 CellularClass |
SmsSendPdu | 在 ISmsMessageBase 中使用 MessageType 的 SendMessageAndGetResultAsync |
IMbnSmsConfiguration | |
get_ServiceCenterAddress | SmsDevice2.SmscAddress |
get_SmsFormat | SmsDevice2.CellularClass |
put_ServiceCenterAddress | SmsDevice2.SmscAddress |
IMbnSmsEvents | |
OnSmsNewClass0Message | SmsMessageRegistration.MessageReceived |
OnSmsSendComplete | SmsSendMessageResult |
IMbnSmsReadMsgPdu | |
get_Message | SmsTextMessage2.Body |
get_PduData | SmsTextmessage2.Body |
IMbnSmsReadMsgTextCdma | |
get_Address | SmsTextMessage2.From |
get_EncodingID | SmsTextMessage2.Encoding |
get_Message | SmsTextMessage2.Body |
get_Timestamp | SmsTextMessage.2Timestamp |
IMbnSubscriberInformation | |
get_SimIccID | MobileBroadbandDeviceInformation.SimIccId |
get_SubscriberID | MobileBroadbandDeviceInformation.SubscriberId |
get_TelephoneNumbers | MobileBroadbandDeviceInformation.TelephoneNumbers |