Class WindowsDesktopHost
- Namespace
- VpnHood.AppUi.Hosting.Desktop.WindowsTun
- Assembly
- VpnHood.AppUi.Hosting.Desktop.WindowsTun.dll
Provides a Windows head's whole entry point: the machine facts Windows answers joined to the product facts the head answers.
public static class WindowsDesktopHost
- Inheritance
-
WindowsDesktopHost
- Inherited Members
Methods
Run(string[], DesktopInitParams)
Runs what the command line asks for, and blocks until it ends: the work runs off the calling thread and the UI on
it, so a head calls it from its [STAThread] Main.
public static int Run(string[] args, DesktopInitParams initParams)
Parameters
argsstring[]The process's command-line arguments.
initParamsDesktopInitParamsThe head's init params.
Returns
- int
The process's exit code.
Remarks
Every run logs to an attached debugger too.
Exceptions
- InvalidOperationException
The entry assembly has no name, so the install has none.