The ISmsMessage::GetAttachmentCount method, in Configuration Manager, gets the count of attachments on the message.

HRESULT GetAttachmentCount(
	ULONG*  pulCount



Data type: ULONGQualifiers: [out]Pointer to the count of attachments on the message. Each attachment is represented by an ISmsMessageAttachment Interface object.

Return Value

An HRESULT code. Possible values include, but are not limited to, those in the following:


The method succeeded.


Your application uses this method when enumerating message attachments. A call to this method is frequently followed by a call to ISmsMessage::GetAttachmentByIndex Method to enumerate the attachments one by one.

See Also

Send comments about this topic to Microsoft.