PyIMessage.CreateAttach

int, PyIAttach = CreateAttach(interface, flags )

Creates an attachment

Parameters

interface : PyIID

The interface to use, or None

flags : int

Bitmask of flags that controls how the attachment is created.

Return Value

The result is a tuple of (attachmentNum, attachmentObject)