The MAPIFindNext function returns the MAPI_E_FAILURE(2) error when a program that is based on Simple MAPI (SMAPI) calls the function in Windows Vista

The MAPIFindNext function returns the MAPI_E_FAILURE(2) error when a program that is based on Simple MAPI (SMAPI) calls the function in Windows Vista

Article ID : 930279
Last Review : January 23, 2007
Revision : 1.1

SYMPTOMS

When a program that is based on Simple MAPI (SMAPI) calls the MAPIFindNext function in Windows Vista, the function returns the MAPI_E_FAILURE(2) error. Therefore, you cannot use the MAPIFindNext function in the Simple MAPI program.

Back to the top

CAUSE

This problem occurs if Windows Mail is configured as the default e-mail program in Windows Vista.

To determine whether Windows Mail is configured as the default e-mail program in Windows Vista, follow these steps:

1. Click StartStart, type default programs in the Start Search box, and then click Default Programs in the Programs list.
2. In the Default Programs dialog box, click Set program access and computer defaults.

User If you are prompted for an administrator password or confirmation, type your password or click Continue.

3. In the Set Program Access and Computer Defaults dialog box, expand the configuration option that is selected. For example, expand Custom.
4. Determine whether the Windows Mail option is selected under Choose a default e-mail program.

Back to the top

WORKAROUND

To work around this problem, use the Windows Mail API in the program. For more information about the Windows Mail API, visit the following Web site:

http://msdn2.microsoft.com/en-us/library/ms709546.aspx (http://msdn2.microsoft.com/en-us/library/ms709546.aspx)

Back to the top

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the Applies to section.

Back to the top


APPLIES TO
• Windows Vista Home Basic
• Windows Vista Home Premium
• Windows Vista Business
• Windows Vista Enterprise
• Windows Vista Ultimate

Back to the top

Keywords: 
kbbug kbapi kbbackup kbrepair kbrd kbenv kbui kbhardware kbconfig kberrmsg kbmm kbnetwork kbsetup kbfax kbappcompatibility kbfirewall kbregistry kbupgrade kbwindowsupdate kbexpertiseadvanced kbexpertiseinter kbtshoot KB930279

Back to the top

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image