IMbnSms::SmsDelete 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.
Deletes a set of SMS messages from a device.
Syntax
HRESULT SmsDelete(
[in] MBN_SMS_FILTER *smsFilter,
[out] ULONG *requestID
);
Parameters
[in] smsFilter
A pointer to a MBN_SMS_FILTER structure that defines the set of messages to delete.
[out] requestID
A pointer to a request ID issued by the Mobile Broadband service to identify this request.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
The Mobile Broadband service is not running on this system. |
|
The interface is invalid, most likely because the device was removed from the system. |
|
The interface is invalid. Most likely the Mobile Broadband device has been removed from the system. |
Remarks
This is an asynchronous operation that will return immediately. If the method returns without error, then the Mobile Broadband service will call the OnSmsDeleteComplete method of the IMbnSmsEvents interface.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mbnapi.h |