You will get the solution of 800B0001 error code in windows in this page. When you are trying to open a folder by using HrMAPIOpenFolderEx function then you may receiver this error message
800B0001- MAPI_E_PROVIDER_UNKNOWN
Some causes of 800B0001 error
The error is due to invalid folder path. This is the main cause of occurring 800B0001 error. the error is also occurs through the attacking of malwares and viruses
Process to fix 800B0001 error
Due to path of the folder incorrect you have to first call to open a folder. To fix this error you have to compile a program in which the following additional libraries are require for compile the following given code.
Msvcrt.lib
Edkguid.lib
Addrlkup.lib
Version.lib
Edkutils.lib
Edkdebug.lib
Edkmapi.lib
Mapi32.lib
Aclcls.lib
- #include <edk.h>
- LPMAPISESSION lpMapiSession = NULL;
- LPMDB lpPrivStore = NULL;
- LPMAPIFOLDER lpFolder = NULL;
- LPMAPITABLE lpContentTable = NULL;
- LPSRowSet lpRows = NULL;
- ULONG rCount = 0, i = 0;
- HRESULT hr;
- MAPIINIT_0 MapiInit;
- char lngName[100];
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR pszCmd,
- int nCmdShow)
- {
- MapiInit.ulVersion = 0;
- MapiInit.ulFlags = MAPI_NT_SERVICE;
- hr = MAPIInitialize( &MapiInit);
- if (!HR_SUCCEEDED(hr))
- {
- MessageBox(0L,"MAPIInitialize error","Error",MB_OK);
- return -1;
- }
- hr = MAPILogonEx( 0, (LPTSTR)NULL, (LPTSTR)"",
- MAPI_NEW_SESSION | MAPI_EXTENDED | MAPI_LOGON_UI,
- &lpMapiSession);
- if (!HR_SUCCEEDED(hr))
- {
- MessageBox(0L,"MAPILogonEx error","Error",MB_OK);
- return -1;
- }
- hr = HrOpenExchangePrivateStore( lpMapiSession, &lpPrivStore);
- if (!HR_SUCCEEDED(hr))
- {
- MessageBox(0L,"HrOpenExchangePrivateStore error","Error",MB_OK);
- return -1;
- }
- hr = HrMAPIOpenFolderEx(lpPrivStore,'\\',"\\Inbox",&lpFolder);
- if (!HR_SUCCEEDED(hr))
- {
- char szError[50];
- sprintf(szError, "HrMAPIOpenFolderEx error %x",hr);
- MessageBox(0L,szError,"Error",MB_OK);
- }
- hr = HrMAPIOpenFolderEx(lpPrivStore,'\\',
- "Top of Information Store\\Inbox",&lpFolder);
- if (!HR_SUCCEEDED(hr))
- {
- MessageBox(0L,"HrMAPIOpenFolderEx error","Error",MB_OK);
- return -1;
- }
- else
- MessageBox(0L,"HrMAPIOpenFolderEx Successful","Error",MB_OK);
- if (lpMapiSession)
- {
- lpMapiSession->Logoff(0, 0, 0);
- ULRELEASE(lpMapiSession);
- }
- MAPIUninitialize();
- return 0 ;
- }
This is an advance program to overcome this error but this is not possible by a general user. So you can also use third party tool to overcome this error easily. The tool option is best and easy and easily handled by the common user. Only you have to download a tool and install it in your computer. Due to the graphical interface of the tool you can easily understand what you have to do. You will also get some more features from this tool just like it scans automatically your computer and show the errors and then gives you the choice to remove it or not.
So by the tool it is easy to fix my pc and remove these types of errors.
No comments:
Post a Comment