gecko-dev/xpcom/threads/nsIProcess.idl
2002-04-27 05:33:09 +00:00

39 lines
1.1 KiB
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();
/** XXX what charset? **/
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;
/**
* Called to get the value of environment variable
* XXX what charset?
*
* @param aName The string enviroment variable name
* @exception NS_ERROR_OUT_OF_MEMORY
*
* @return The value of the requested string environment variable name
*/
string getEnvironment(in string aName);
};
%{C++
#define NS_PROCESS_CONTRACTID "@mozilla.org/process/util;1"
#define NS_PROCESS_CLASSNAME "Process Specification"
%}