The ISmsMessage::SetAttachmentFromFile method, in Configuration Manager, sets an attachment from a file.
[IDL] HRESULT SetAttachmentFromFile( LPCWSTR szName, LPCWSTR szPath );
- Data type: LPCWSTRQualifiers: [in]Null-terminated string specifying the name to associate with the attachment, represented by an ISmsMessageAttachment Interface object.
- Data type: LPCWSTRQualifiers: [in]Null-terminated string specifying the path of the file containing the attachment contents.
An HRESULT code. Possible values include, but are not limited to, the following:
- The method succeeded.
Attachment names must be unique within a message. Setting an attachment with a name that already exists causes the old attachment to be overridden. Because this might be inefficient, clients should be designed to never set multiple attachments with the same name.
Send comments about this topic to Microsoft.