Table of Contents

Class WindowsDesktopSession

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

Represents a Windows session, the console's or a Remote Desktop one, by its ID.

public sealed class WindowsDesktopSession : IDesktopSession
Inheritance
WindowsDesktopSession
Implements
Inherited Members

Remarks

Only a launch Windows lets bring a window forward, as the one the person just started there, may let another process do so: the window's, which serves the pipe.

Properties

IsSandboxed

Gets a value indicating whether the launch runs in Windows' sandbox, an AppContainer, which keeps the window's pipe in the app's own namespace.

public bool IsSandboxed { get; init; }

Property Value

bool

Name

Gets what tells one person's sessions apart; it is empty where there is none to tell, and the person then has one window.

public string Name { get; }

Property Value

string

Remarks

It is the session's ID.

Methods

HandForegroundTo(NamedPipeClientStream)

Tries to let the process at the pipe's far end bring its window forward, where the platform supports it.

public void HandForegroundTo(NamedPipeClientStream window)

Parameters

window NamedPipeClientStream

The pipe to the running window.

Remarks

It asks Windows to let the window's process come forward; where Windows refuses, as for a launch with no right of its own, the refusal is logged.