This code runs without problems in debug debug when Visual Studio does not start as an administrator.
Marshal.GetActiveObject("Outlook.Application");
However, when I run Vs as an administrator and run the same line in debugging, I get the following error:
System.Runtime.InteropServices.COMException Operation unavailable (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))
How can I fix this.
, Visual Studio ( " " ), Outlook , Windows. , Visual Studio , Outlook.
Source: https://habr.com/ru/post/1540860/More articles:How can I directly embed a DirectShow Push Source filter in an EXE? - filterС# Регистрация Встроенный фильтр Directshow - reflectionCan I make my private DirectShow filter available for viewing by Moniker with external programs? - filterHow to filter a JSON array in C # - jsonDisabling $ routeprovider when using bootstrap - javascriptSqlite error with Bool values - sqlitetry-with-resource eclipse pattern? - javaDocstring для пользовательских определений - clojureHow to select all elements, excluding a specific one, together with all its descendants - cssHow to crop the image so that it matches 50% of the screen? - javascriptAll Articles