Table of Contents

Class WindowsVpnPluginDesktopHost

Namespace
VpnHood.AppUi.Hosting.Desktop.WindowsVpnPlugin
Assembly
VpnHood.AppUi.Hosting.Desktop.WindowsVpnPlugin.dll

Provides a Windows VPN plug-in head's whole entry point: the app and its window in the head's process, with the machine facts the package answers.

public static class WindowsVpnPluginDesktopHost
Inheritance
WindowsVpnPluginDesktopHost
Inherited Members

Methods

Run(string[], DesktopInitParams)

Runs the app and its window until the window's run ends: the app on a worker thread, and the window on the calling thread, which must be the head's [STAThread] main thread.

public static int Run(string[] args, DesktopInitParams initParams)

Parameters

args string[]

The process's command-line arguments.

initParams DesktopInitParams

The head's init params.

Returns

int

The process's exit code: 0, or 1 where the run failed or an access key it was given could not be read.

Remarks

A second launch hands its access key or Quick Launch to the running one, and returns. Where the app or its window fails to start, the failure's message shows in the window's place; any failure is logged, and the exit code is 1.