PRB: MAPI_E_NOT_FOUND Retrieving Global Profile Section Properties

ID: Q236455


The information in this article applies to:


SYMPTOMS

When you access Global Profile Section properties using extended MAPI on a Windows 95 or Windows 98 computer with Microsoft Outlook 98 installed, you may get the following error:

MAPI_E_NOT_FOUND


CAUSE

The profile name used contains a space (for example "Default User").


RESOLUTION

The possible workarounds are:

  • Modify profile name to remove the space.


  • Call MAPILogonEx to logon to the profile first.


  • Install Microsoft Outlook 2000 to update the MAPI dlls.



  • MORE INFORMATION

    Steps to Reproduce Behavior


    You will see that HrGetOneProp on PR_PROFILE_HOME_SERVER returns the following error message:
    -2147221233 (MAPI_E_NOT_FOUND)
    NOTE: This code sample needs to be compiled using the "Ignore all default libraries" option on the Link tab of the Project Settings dialog box. The following libraries must also be used:


    REFERENCES

    For additional information about how to open the Global Profile Section and retrieve properties that exist in this section, please see the following article in the Microsoft Knowledge Base:

    Q188482 HOWTO: Open the Global Profile Section

    Additional query words: Profile Space

    
    Keywords          : kbMAPI kbMsg kbOutlook98 kbVC kbWinOS95 kbWinOS98 kbMAPI100 kbGrpMsg kbDSupport 
    Version           : WINDOWS:1.0,95,98
    Platform          : WINDOWS 
    Issue type        : kbprb 

    Last Reviewed: July 21, 1999