Microsoft KB Archive/58593

= Mac Hyp: AddHandle Attaches a Macintosh Resource to a Message =

Article ID: 58593

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Mail Software Development Kit (SDK) for HyperCard 2.0
 * Microsoft Mail Software Development Kit 3.0

-



This article was previously published under Q58593



SUMMARY
To add the data pointed to by a Macintosh handle to a mail message, use the following syntax:   msmail (addHandle, messageRef, handle, ident [, onlyOne] [, type]) This routine is similar to addField, except that instead of including the data itself in the message, it includes the data pointed to by a handle. Together with getMacResource, this call makes it possible to send resources through Microsoft Mail.

&quot;messageRef&quot; is a reference to a selected message returned by making a call to the msmail function using a parameter that returns a message reference.

&quot;handle&quot; is a Macintosh handle to a resource. This value is returned by a call to getMacResource.

&quot;ident&quot; is a 4-character type identification for that handle, such as &quot;ICON&quot;, &quot;CODE&quot;, &quot;snd &quot;, etc. These are Macintosh resource types.

&quot;onlyOne&quot; is a Boolean (true or false) parameter that can be passed to limit the number of fields with the given ident. If &quot;onlyOne&quot; has the value &quot;true&quot;, addHandle removes from the message any fields with the specified ident before adding the data pointed to by &quot;handle&quot;. If no value is passed for &quot;onlyOne,&quot; it defaults to &quot;true&quot;.

The &quot;type&quot; parameter lets advanced users specify the type of the field to be added. This only needs to be passed if you are creating nontext fields that do not occur on the send screen for this message type. In all other cases, the type is filled in automatically.

This information is taken from the &quot;Microsoft Mail HyperCard Interface Documentation.&quot;

Keywords: KB58593

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.