TnefBuildInfo

This function creates an encoded Transport-neutral Encapsulation Format (TNEF) file.

At a Glance

Header file: Tnefapi.h
Platforms: H/PC 3.0
Windows CE versions: 2.10 and later

Syntax

BOOL WINAPI TnefBuildInfo(const TNEFINFO * pti, LPWSTR szSubject,
MailNonIpmInfo *
lpnii, MailAttArray * lpmaa);

Parameters

pti
[in] Pointer to a TNEFINFO structure that describes the file to create.
szSubject
[in] Null-terminated string that contains the message subject for the file.
lpnii
[in] Long pointer to a MailNonIpmInfo structure that contains the non-Interpersonal Message (non-IPM) properties for the file.
lpmaa
[in] Long pointer to a MailAttArray) structure that contains file attachments for the file. Because Windows CE version 2.10 does not currently support bundling attachments to TNEF files, set this parameter to NULL.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

If successful, this function assigns a newly-created file the name stored in the szTnefFileName member of TNEFINFO.

If necessary, use the UUEncode format for encoding your attachments. You can also use MIME sections if your application supports the MIME format.

Currently, this function supports only meeting request properties.

See Also

TnefDecodeFile