How to restart Outlook.exe from within C++ plugin written for Outlook MAPI

Mahesh Amarelia 1 Reputation point
2021-06-20T05:45:17.107+00:00

Hi There

I have my plugin for outlook written in MAPI C++.

There is one requirement wherein if user does GAL delete, I want to clear the cache of outlook for which there is a switch /CleanAutoCompleteCache which will clear the whole AutoComplete list of outlook as per Microsoft site.

Question is, when my I detect from within a code that someone has deleted GAL and I'll have to restart outlook.exe by supplying /CleanAutoCompleteCache switch, how to restart outlook.exe from within my C++ code?

Any help will be appreciated. Any other way to achieve it?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,523 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,464 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,878 questions
{count} votes