Table of Contents

Class AdministratorsNamespace

Namespace
VpnHood.Core.Client.Devices.WindowsTun.WinNative
Assembly
VpnHood.Core.Client.Devices.WindowsTun.dll

Represents a private namespace whose boundary descriptor names the Administrators group, made with the default security, meant to keep a standard user from taking a name in it first, as one can in the Global namespace.

public sealed class AdministratorsNamespace : IDisposable
Inheritance
AdministratorsNamespace
Implements
Inherited Members

Remarks

The caller names it: the boundary's name, the same namespace in every session whichever process made it, and this process's prefix for it, under which an object in it is named by Name(string).

Methods

Dispose()

Closes this process's handle on the namespace and deletes its boundary descriptor.

public void Dispose()

Name(string)

Gets an object's name in the namespace.

public string Name(string objectName)

Parameters

objectName string

The object's own name.

Returns

string

The namespace's prefix, a backslash, and the object's name.

Open(string)

Makes the namespace, or enters it where another process made it first.

public static AdministratorsNamespace Open(string name)

Parameters

name string

The namespace's name, which is both its boundary's and this process's prefix for it.

Returns

AdministratorsNamespace

The namespace, open in this process.

Exceptions

Win32Exception

Windows refused the boundary or the namespace, as for a standard user.