MailGetSvcIdEx

This function, an extension of MailGetSvcId, retrieves the object identifier (OID) of a mail message and operates in a multiple folder hierarchy environment.

At a Glance

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

Syntax

BOOL MailGetSvcIdEx (HANDLE hMail, MailMsg* pmm, FID* pfid);

Parameters

hMail
[in] Handle to the mail context. This handle is created by the MailOpen function.
pmm
[in/out] Pointer to the MailMsg structure that contains the service name and identifier of the mail entry. This function modifies and returns the oid, dwFlags, and wBodyLen members in this structure.
pfid
[in] Pointer to the folder identifier of the folder that contains the mail entry.

Return Values

TRUE indicates success. FALSE indicates failure. Call the function MailError or MailErrorMsg for extended error information.