nsIProcess

IID:9da0b650-d07e-4617-a18a-250035572ac8
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly PRInt32 exitValue

readonly nsIFile location

readonly PRUint32 pid

readonly char* processName

readonly PRUint32 processSignature


Methods

void init ( nsIFile executable ) void initWithPid ( PRUint32 pid ) void kill ( ) PRUint32 run ( PRBool blocking , arrayof char* args , PRUint32 count )

void init ( nsIFile executable )

Arguments:
executable

void initWithPid ( PRUint32 pid )

Arguments:
pid

void kill ( )


PRUint32 run ( PRBool blocking , arrayof char* args , PRUint32 count )

Executes the file this object was initialized with

Arguments:
blocking: Whether to wait until the process terminates before returning or not
args: An array of arguments to pass to the process
count: The length of the args array

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
August 9, 2005, 7:46 am dbeckham-xulplanet at dealnews dot com
The run method actually returns the pid of the process: http://lxr.mozilla.org/seamonkey/source/xpcom/threads/nsIProcess.idl

Copyright © 1999 - 2005 XULPlanet.com