Win32Process class

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.
no setterinherited
pid int
The process id of the process to be acted on.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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