NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Process Members

Public:

Constructor

Process Constructor Initializes a new instance of the System.Diagnostics.Process.Process class.

Properties

BasePriority Gets the base priority of the associated process.
ExitCode Gets the value that was specified by the associated process when it was terminated.
ExitTime Gets the time that the associated process exited.
Handle Returns the native handle for the associated process. The handle is only available if this component started the process.
HandleCount Gets the number of handles that are associated with the process.
HasExited Gets a value indicating whether the associated process has been terminated.
Id Gets the unique identifier for the associated process.
MachineName Gets the name of the computer on which the associated process is running.
MainModule Gets the main module for the associated process.
MainWindowHandle Returns the window handle of the main window of the associated process.
MainWindowTitle Returns the caption of the MainWindowHandle of the process. If the handle is zero (0), then an empty string is returned.
MaxWorkingSet Gets or sets the maximum allowable working set for the associated process.
MinWorkingSet Gets or sets the minimum allowable working set for the associated process.
Modules Gets the modules that have been loaded by the associated process.
NonpagedSystemMemorySize Returns the amount of memory that the system has allocated on behalf of the associated process that can not be written to the virtual memory paging file.
PagedMemorySize Returns the amount of memory that the associated process has allocated that can be written to the virtual memory paging file.
PagedSystemMemorySize Returns the amount of memory that the system has allocated on behalf of the associated process that can be written to the virtual memory paging file.
PeakPagedMemorySize Returns the maximum amount of memory that the associated process has allocated that can be written to the virtual memory paging file.
PeakVirtualMemorySize Returns the maximum amount of virtual memory that the associated process has requested.
PeakWorkingSet Returns the maximum amount of physical memory that the associated process required at once.
PriorityBoostEnabled Gets or sets a value indicating whether the associated process priority should be temporarily boosted by the operating system when the main window has focus.
PriorityClass Gets or sets the overall priority category for the associated process.
PrivateMemorySize Returns the number of bytes that the associated process has allocated that cannot be shared with other processes.
PrivilegedProcessorTime Returns the amount of time the process has spent running code inside the operating system core.
ProcessName Gets the friendly name of the process.
ProcessorAffinity Gets or sets which processors the threads in this process can be scheduled to run on.
Responding Gets a value indicating whether or not the user interface of the process is responding.
Site (inherited from Component) Gets or sets the site of the Component.
StartInfo Gets or sets the parameters to pass into the Start method for the Process.
StartTime Returns the time the associated process was started.
SynchronizingObject Represents the object used to marshal the event handler calls issued as a result of a Process exit. Normally this property will be set when the component is placed inside a control or a from, since those components are bound to a specific thread.
Threads Gets the set of threads that are running in the associated process.
TotalProcessorTime Returns the amount of time the associated process has spent utilizing the CPU. It is the sum of the UserProcessorTime and PrivilegedProcessorTime.
UserProcessorTime Returns the amount of time the associated process has spent running code inside the application portion of the process (not the operating system core).
VirtualMemorySize Returns the amount of virtual memory that the associated process has requested.
WatchForExit Gets or sets whether the System.Diagnostics.Process.Exited event is fired when the process terminates.
WorkingSet Returns the total amount of physical memory the associated process.

Methods

Close Frees any resources associated with this component.
CloseMainWindow Closes a process that has a user interface by sending a close message to its main window.
Dispose (inherited from Component) Disposes of the Component.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetContainer (inherited from Component) Returns the IContainer that contains the Component.
GetCurrentProcess Returns a new Process component and associates it with the current active process.
GetDesignMode (inherited from Component) Gets a value indicating whether the Component is currently in design mode.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetProcessById Overloaded. Creates a new Process component, associating it with the existing process resource specified by the processId parameter.
GetProcesses Overloaded. Creates an array of new Process components, associating them with existing process resources on the specified computer.
GetProcessesByName Overloaded. Creates an array of new Process components, associating them with the existing process resources specified by the processName parameter.
GetServiceObject (inherited from Component) Returns an object representing a service provided by the Component.
GetType (inherited from Object) Gets the Type of the Object.
Kill Stops the associated process immediately.
Refresh Discards any information about the associated process that has been cached inside the process component. After Refresh is called, the first request for information for each property causes the process component to obtain a new value from the associated process.
Start Overloaded. Starts a process resource and associates it with a Process component.
ToString (inherited from Component) Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only.
WaitForExit Overloaded. Sets a period to wait for the associated process to exit.
WaitForInputIdle Overloaded. Instructs the Process component to wait for the associated process to enter an idle state.

Events

Exited [To be supplied.]

Protected:

Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnExited Raises the System.Diagnostics.Process.Exited event.

Event Hookup:

Methods

AddOnExited Adds the Exited event handler.
RemoveOnExited Remove the Exited event handler.

See Also

Process Class | System.Diagnostics Namespace