You are here:

C++/How to access mailbox of user X from user Y


I have written a program in Vicual C++.Net environment using extended
I have logged into the my machine as an administrator.
I created a dynamic profile of another user.To access the mail box
of another user,I carried on the following steps:
2.Impersonate the User
3.Creating a dynamic profile.
log on to Mapi session is successful using MapiLogonEx.
GetMsgStore() is successful but while using the OpenMsgStore
I am getting error.
The error is "ClassFactory cannot supply requested class"
Also I have checked the error using GetLastError.And the
error is "The Information store could not be openned."

Please help me out from this mess.Any help is highly appreciated

Moloy Bhattacharyya , Thank you for your question.

I regret that I do not have the knowledge to answer this question.

I suggest that you post this question at, which is more advanced than

David Spector


All Answers

Answers by Expert:

Ask Experts


David Spector


Highly knowledgeable in the C++ language, Visual C++ (MSVC), Windows API, documentation and other quality-assurance techniques, and debugging. Knowledgeable in MFC, COM, GUI design, and object-oriented design.


I have been a software engineer since 1965. I have been published. My specializations have been: biomedical programming, compiler implementation, and many kinds of Windows programming. I don't do Databases or other business-oriented stuff.

Windows?/DOS Developer's Journal, ACM SIGPLAN Notices, and Computer Science Press.

ICCP Systems Programming Certification
Master's degree equivalent in Computer Science

©2016 All rights reserved.