Win32Process class Null safety

Suspend or resume processes on Microsoft Windows.

Pass in the process id number when instantiating this object, then call the suspend() or resume() methods.

Returns true if successful, false if the call failed.

Example

final process = Win32Process([pid]);

final result = process.suspend();

if (result != true) {
  // Handle error.
}

Constructors

Win32Process(int pid)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
pid int
The process id of the process to be acted on.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
resume() bool
Returns true if the process was successfully resumed, returns false if it failed.
suspend() bool
Returns true if the process was successfully suspended, returns false if it failed.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited