UNPKG

@tsonic/dotnet-types

Version:

TypeScript declarations and metadata for .NET 10.0 assemblies

261 lines (241 loc) 10.2 kB
// Auto-generated by generatedts on 2025-11-02T09:57:52Z - do not edit by hand. type int = number & { __brand: "int" }; type uint = number & { __brand: "uint" }; type byte = number & { __brand: "byte" }; type sbyte = number & { __brand: "sbyte" }; type short = number & { __brand: "short" }; type ushort = number & { __brand: "ushort" }; type long = number & { __brand: "long" }; type ulong = number & { __brand: "ulong" }; type float = number & { __brand: "float" }; type double = number & { __brand: "double" }; type decimal = number & { __brand: "decimal" }; declare namespace Microsoft.Win32.SafeHandles { class SafeProcessHandle extends Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid implements System.IDisposable { constructor(); constructor(existingHandle: number, ownsHandle: boolean); } } declare namespace System.Diagnostics { class DataReceivedEventArgs extends System.EventArgs { readonly Data: string; } class DataReceivedEventHandler extends System.MulticastDelegate implements System.ICloneable, System.Runtime.Serialization.ISerializable { constructor(object: any, method: number); Invoke(sender: any, e: System.Diagnostics.DataReceivedEventArgs): void; BeginInvoke(sender: any, e: System.Diagnostics.DataReceivedEventArgs, callback: System.AsyncCallback, object: any): System.IAsyncResult; EndInvoke(result: System.IAsyncResult): void; } class MonitoringDescriptionAttribute extends System.ComponentModel.DescriptionAttribute { constructor(description: string); readonly Description: string; } class Process extends System.ComponentModel.Component implements System.ComponentModel.IComponent, System.IDisposable { constructor(); readonly SafeHandle: Microsoft.Win32.SafeHandles.SafeProcessHandle; readonly Handle: number; readonly BasePriority: int; readonly ExitCode: int; readonly HasExited: boolean; readonly StartTime: System.DateTime; readonly ExitTime: System.DateTime; readonly Id: int; readonly MachineName: string; MaxWorkingSet: number; MinWorkingSet: number; readonly Modules: System.Diagnostics.ProcessModuleCollection; readonly NonpagedSystemMemorySize64: long; readonly NonpagedSystemMemorySize: int; readonly PagedMemorySize64: long; readonly PagedMemorySize: int; readonly PagedSystemMemorySize64: long; readonly PagedSystemMemorySize: int; readonly PeakPagedMemorySize64: long; readonly PeakPagedMemorySize: int; readonly PeakWorkingSet64: long; readonly PeakWorkingSet: int; readonly PeakVirtualMemorySize64: long; readonly PeakVirtualMemorySize: int; PriorityBoostEnabled: boolean; PriorityClass: System.Diagnostics.ProcessPriorityClass; readonly PrivateMemorySize64: long; readonly PrivateMemorySize: int; ProcessorAffinity: number; readonly SessionId: int; StartInfo: System.Diagnostics.ProcessStartInfo; readonly Threads: System.Diagnostics.ProcessThreadCollection; readonly HandleCount: int; readonly VirtualMemorySize64: long; readonly VirtualMemorySize: int; EnableRaisingEvents: boolean; readonly StandardInput: System.IO.StreamWriter; readonly StandardOutput: System.IO.StreamReader; readonly StandardError: System.IO.StreamReader; readonly WorkingSet64: long; readonly WorkingSet: int; SynchronizingObject: System.ComponentModel.ISynchronizeInvoke; readonly MainModule: System.Diagnostics.ProcessModule; readonly MainWindowHandle: number; readonly MainWindowTitle: string; readonly Responding: boolean; readonly ProcessName: string; readonly PrivilegedProcessorTime: System.TimeSpan; readonly TotalProcessorTime: System.TimeSpan; readonly UserProcessorTime: System.TimeSpan; CloseMainWindow(): boolean; WaitForInputIdle(): boolean; WaitForInputIdle(milliseconds: int): boolean; WaitForInputIdle(timeout: System.TimeSpan): boolean; Close(): void; static GetProcessById(processId: int, machineName: string): System.Diagnostics.Process; static GetProcessById(processId: int): System.Diagnostics.Process; static GetProcessesByName(processName: string): ReadonlyArray<System.Diagnostics.Process>; static GetProcesses(): ReadonlyArray<System.Diagnostics.Process>; static GetProcesses(machineName: string): ReadonlyArray<System.Diagnostics.Process>; static GetCurrentProcess(): System.Diagnostics.Process; Refresh(): void; Start(): boolean; static Start(fileName: string): System.Diagnostics.Process; static Start(fileName: string, arguments: string): System.Diagnostics.Process; static Start(fileName: string, arguments: ReadonlyArray<string>): System.Diagnostics.Process; static Start(startInfo: System.Diagnostics.ProcessStartInfo): System.Diagnostics.Process; WaitForExit(): void; WaitForExit(milliseconds: int): boolean; WaitForExit(timeout: System.TimeSpan): boolean; WaitForExitAsync(cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.Task; BeginOutputReadLine(): void; BeginErrorReadLine(): void; CancelOutputRead(): void; CancelErrorRead(): void; static EnterDebugMode(): void; static LeaveDebugMode(): void; static Start(fileName: string, userName: string, password: System.Security.SecureString, domain: string): System.Diagnostics.Process; static Start(fileName: string, arguments: string, userName: string, password: System.Security.SecureString, domain: string): System.Diagnostics.Process; Kill(): void; static GetProcessesByName(processName: string, machineName: string): ReadonlyArray<System.Diagnostics.Process>; Kill(entireProcessTree: boolean): void; } class ProcessModule extends System.ComponentModel.Component implements System.ComponentModel.IComponent, System.IDisposable { readonly ModuleName: string; readonly FileName: string; BaseAddress: number; ModuleMemorySize: int; EntryPointAddress: number; readonly FileVersionInfo: System.Diagnostics.FileVersionInfo; } class ProcessModuleCollection extends System.Collections.ReadOnlyCollectionBase implements System.Collections.ICollection, System.Collections.IEnumerable { constructor(processModules: ReadonlyArray<System.Diagnostics.ProcessModule>); readonly Item: System.Diagnostics.ProcessModule; IndexOf(module: System.Diagnostics.ProcessModule): int; Contains(module: System.Diagnostics.ProcessModule): boolean; CopyTo(array: ReadonlyArray<System.Diagnostics.ProcessModule>, index: int): void; } enum ProcessPriorityClass { Normal = 32, Idle = 64, High = 128, RealTime = 256, BelowNormal = 16384, AboveNormal = 32768 } class ProcessStartInfo { constructor(); constructor(fileName: string); constructor(fileName: string, arguments: string); constructor(fileName: string, arguments: ReadonlyArray<string>); Arguments: string; readonly ArgumentList: System.Collections.ObjectModel.Collection<string>; CreateNoWindow: boolean; readonly EnvironmentVariables: System.Collections.Specialized.StringDictionary; readonly Environment: System.Collections.Generic.IDictionary<string, string>; RedirectStandardInput: boolean; RedirectStandardOutput: boolean; RedirectStandardError: boolean; StandardInputEncoding: System.Text.Encoding; StandardErrorEncoding: System.Text.Encoding; StandardOutputEncoding: System.Text.Encoding; FileName: string; WorkingDirectory: string; ErrorDialog: boolean; ErrorDialogParentHandle: number; UserName: string; Verb: string; WindowStyle: System.Diagnostics.ProcessWindowStyle; PasswordInClearText: string; Domain: string; LoadUserProfile: boolean; UseCredentialsForNetworkingOnly: boolean; UseShellExecute: boolean; readonly Verbs: ReadonlyArray<string>; Password: System.Security.SecureString; CreateNewProcessGroup: boolean; } class ProcessThread extends System.ComponentModel.Component implements System.ComponentModel.IComponent, System.IDisposable { readonly BasePriority: int; readonly CurrentPriority: int; readonly Id: int; PriorityBoostEnabled: boolean; PriorityLevel: System.Diagnostics.ThreadPriorityLevel; readonly StartAddress: number; readonly ThreadState: System.Diagnostics.ThreadState; readonly WaitReason: System.Diagnostics.ThreadWaitReason; readonly StartTime: System.DateTime; IdealProcessor: int; ProcessorAffinity: number; readonly PrivilegedProcessorTime: System.TimeSpan; readonly TotalProcessorTime: System.TimeSpan; readonly UserProcessorTime: System.TimeSpan; ResetIdealProcessor(): void; } class ProcessThreadCollection extends System.Collections.ReadOnlyCollectionBase implements System.Collections.ICollection, System.Collections.IEnumerable { constructor(processThreads: ReadonlyArray<System.Diagnostics.ProcessThread>); readonly Item: System.Diagnostics.ProcessThread; Add(thread: System.Diagnostics.ProcessThread): int; Insert(index: int, thread: System.Diagnostics.ProcessThread): void; IndexOf(thread: System.Diagnostics.ProcessThread): int; Contains(thread: System.Diagnostics.ProcessThread): boolean; Remove(thread: System.Diagnostics.ProcessThread): void; CopyTo(array: ReadonlyArray<System.Diagnostics.ProcessThread>, index: int): void; } enum ProcessWindowStyle { Normal = 0, Hidden = 1, Minimized = 2, Maximized = 3 } enum ThreadPriorityLevel { Normal = 0, AboveNormal = 1, Highest = 2, TimeCritical = 15, Idle = -15, Lowest = -2, BelowNormal = -1 } enum ThreadState { Initialized = 0, Ready = 1, Running = 2, Standby = 3, Terminated = 4, Wait = 5, Transition = 6, Unknown = 7 } enum ThreadWaitReason { Executive = 0, FreePage = 1, PageIn = 2, SystemAllocation = 3, ExecutionDelay = 4, Suspended = 5, UserRequest = 6, EventPairHigh = 7, EventPairLow = 8, LpcReceive = 9, LpcReply = 10, VirtualMemory = 11, PageOut = 12, Unknown = 13 } }