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 translations Article translations
Article ID: 930279 - View products that this article applies to.
Expand all | Collapse all

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.

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 Start
    Collapse this imageExpand this image
    Start button
    , 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.

    Collapse this imageExpand this image
     User Account Control permission
    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.

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

STATUS

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

Properties

Article ID: 930279 - Last Review: January 23, 2007 - Revision: 1.3
APPLIES TO
  • Windows Vista Home Basic
  • Windows Vista Home Premium
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Ultimate
Keywords: 
kbbug kbapi kbbackup kbrepair kbrd kbenv kbui kbhardware kbconfig kberrmsg kbmm kbnetwork kbsetup kbfax kbappcompatibility kbfirewall kbregistry kbupgrade kbwindowsupdate kbexpertiseadvanced kbexpertiseinter kbtshoot KB930279

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com