Mozilla/mozilla/xpcom/threads/nsIProcess.idl
dbragg%netscape.com 561a3dc878 New interface for creating and managing processes. New feature for bug 62167. a=dougt sr=brendan
git-svn-id: svn://10.0.0.236/trunk@85177 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 21:23:24 +00:00

26 lines
690 B
Plaintext

#include "nsIFile.idl"
#include "nsISupports.idl"
[scriptable, uuid(3ed86dbe-d084-11d4-ba7a-00c04fa0d26b)]
interface nsIProcess : nsISupports
{
void init(in nsIFile executable);
void initWithPid(in unsigned long pid);
void kill();
void run(in boolean blocking, [array, size_is(count)] in string args, in unsigned long count, out unsigned long pid);
readonly attribute nsIFile location;
readonly attribute unsigned long pid;
readonly attribute string processName;
readonly attribute unsigned long processSignature;
readonly attribute long exitValue;
};
%{C++
#define NS_PROCESS_CONTRACTID "@mozilla.org/process/util;1"
#define NS_PROCESS_CLASSNAME "Process Specification"
%}