The ISmsMessage::GetAttachmentByIndex method, in Configuration Manager, gets a message attachment by index.
[IDL] HRESULT GetAttachmentByIndex( ULONG ulIdx, ISmsMessageAttachment** ppAttach );
- Data type: ULONGQualifiers: [in]Zero-based index of the attachment.
- Data type: ISmsMessageAttachmentQualifiers: [out]Pointer to an ISmsMessageAttachment Interface object representing the attachment.
An HRESULT code. Possible values include but are not limited to the following:
- The method succeeded.
- The specified index is out of range.
Your application should use ISmsMessage::GetAttachmentCount Method to get the count of attachments. Then it can call GetAttachmentByIndex to iterate through the attachments one by one.
Send comments about this topic to Microsoft.