private MyPhonePlugins.ActivateOptions ConvertActivateOptions(ActivateOptions options) { if ((options & ActivateOptions.WithVideo) != 0) { return(MyPhonePlugins.ActivateOptions.WithVideo); } else { return(MyPhonePlugins.ActivateOptions.None); } }
private void Launch(string id, string profile) { var appManager = new ApplicationActivationManager(); const ActivateOptions noFlags = ActivateOptions.None; var queryArguments = TerminalHelper.GetArguments(profile, _openNewTab); try { appManager.ActivateApplication(id, queryArguments, noFlags, out var unusedPid); } catch (Exception ex) { var name = "Plugin: " + Resources.plugin_name; var message = Resources.run_terminal_failed; Log.Exception("Failed to open Windows Terminal", ex, GetType()); _context.API.ShowMsg(name, message, string.Empty); } }
public extern IntPtr ActivateApplication([In] string appUserModelId, [In] string arguments, [In] ActivateOptions options, [Out] out int processId);
public void ActivateEx(string callId, ActivateOptions options) { callHandler.ActivateEx(callId, ConvertActivateOptions(options)); }
public extern uint ActivateApplication([In] String appUserModelId, [In] String arguments, [In] ActivateOptions options, [Out] out UInt32 processId);