Microsoft KB Archive/930279

= 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

Article Last Modified on 1/23/2007

-

APPLIES TO


 * Windows Vista Home Basic
 * Windows Vista Home Premium
 * Windows Vista Business
 * Windows Vista Enterprise
 * Windows Vista Ultimate

-



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 Startvistastartbutton.jpg], 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.

If you are prompted for an administrator password or confirmation, type your password or click Continue.
 * 1) In the Set Program Access and Computer Defaults dialog box, expand the configuration option that is selected. For example, expand Custom.
 * 2) 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 &quot;Applies to&quot; section.

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

-

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

© Microsoft Corporation. All rights reserved.