RestartManagerProcessInfo Class

  • Supported on windows6.0.6000

Describes an application or service that is using a resource registered with a Restart Manager session.

[SupportedOSPlatform("windows6.0.6000")]
public sealed class RestartManagerProcessInfo

Properties

NameDescription
ApplicationNameGets the friendly name of the application.
ApplicationTypeGets the type of the application.
IsRestartableGets a value indicating whether the Restart Manager can restart the application after shutting it down.
ProcessIdGets the identifier of the process.
ServiceShortNameGets the short name of the service, or an empty string when the process is not a service.
StartTimeGets the time at which the process started, expressed in local time (DateTimeKind.Local). Windows recycles process identifiers, so only the combination of RestartManagerProcessInfo.ProcessId and RestartManagerProcessInfo.StartTime identifies a process.
StatusGets the current status of the application.
TerminalServicesSessionIdGets the Terminal Services session identifier in which the process is running.

Gets the friendly name of the application.

public string ApplicationName { get; }

Property value

string

Gets the type of the application.

public RestartManagerApplicationType ApplicationType { get; }

Gets a value indicating whether the Restart Manager can restart the application after shutting it down.

public bool IsRestartable { get; }

Property value

bool

Gets the identifier of the process.

public int ProcessId { get; }

Property value

int

Gets the short name of the service, or an empty string when the process is not a service.

public string ServiceShortName { get; }

Property value

string

Gets the time at which the process started, expressed in local time (DateTimeKind.Local). Windows recycles process identifiers, so only the combination of RestartManagerProcessInfo.ProcessId and RestartManagerProcessInfo.StartTime identifies a process.

public DateTime StartTime { get; }

Property value

DateTime

Gets the current status of the application.

public RestartManagerApplicationStatus Status { get; }

TerminalServicesSessionId

RestartManagerProcessInfo.cs

Gets the Terminal Services session identifier in which the process is running.

public int TerminalServicesSessionId { get; }

Property value

int