Start a DOS process that invokes MUIM_Process_Process on a supplied
source object. With SourceClass set, the worker uses CoerceMethod
through that class; otherwise it uses DoMethod on SourceObject. Supply a
valid source object implementing the worker method before launch.
Neither source object nor source class is owned, copied or kept alive by
a reference.
The superclass is Semaphore, which derives from rootclass, not Notify.
The inherited semaphore methods are available, but Process does not
acquire that semaphore around its own state. This class does not
implement Notify-style attribute notifications, automatic UI marshalling
or thread-safe object access.
Construction defaults AutoLaunch to TRUE, stack size to 40000 bytes and
priority to the creating task's priority. With automatic launch, the
worker can execute before construction returns. Constructor success does
not prove successful process creation. Use AutoLaunch FALSE when the
source needs additional initialization before starting.
Disposal calls Kill with maxdelay zero and waits without a timeout
before delegating disposal. The source implementation must cooperate
with cancellation and return. Do not dispose this object or call its
waiting Kill from its own worker, or while holding resources that worker
needs to finish. Keep the source, class and process object alive until
worker use has ended.