IMbnSmsEvents::OnSmsNewClass0Message method (mbnapi.h)
Important
Starting in Windows 10, version 1803, the Win32 APIs described in this section are replaced by the Windows Runtime APIs in the Windows.Networking.Connectivity namespace.
Notification method signaling the arrival of a new class 0/flash message.
Syntax
HRESULT OnSmsNewClass0Message(
[in] IMbnSms *sms,
[in] MBN_SMS_FORMAT smsFormat,
[in] SAFEARRAY *readMsgs
);
Parameters
[in] sms
An IMbnSms interface representing the Mobile Broadband device that received the new message(s).
[in] smsFormat
An MBN_SMS_FORMAT value that defines the format of the new SMS message.
[in] readMsgs
An array of new messages.
Return value
This method must return S_OK.
Remarks
For GSM devices, the calling application should call QueryInterface on each element in readMsgs for an IMbnSmsReadMsgPdu interface.
For CDMA devices, if smsFormat is MBN_SMS_FORMAT_TEXT, then the calling application should call QueryInterface for a IMbnSmsReadMsgTextCdma interface. If smsFormat is MBN_SMS_FORMAT_PDU, then the calling application should call QueryInterface for a IMbnSmsReadMsgPdu interface.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mbnapi.h |