CreationOptions
(table) A table containing the creation options by name that control how the process is created. In the table, a value of true turns an option on, and a value of false turns the option off. If nil is passed, DefaultErrorMode, NewConsole and NewProcessGroup are set to true by default.
The following options can be set or unset in the table:
KEY |
TYPE DESCRIPTION |
|
DefaultErrorMode |
boolean |
The new process does not inherit the error mode of the calling process. Instead, it gives the new process the current default error mode. You can pass false to inherit the error mode of the calling process, eg. {DefaultErrorMode=false} |
NewConsole |
boolean |
Whether or not the new process has a new console, instead of inheriting the parent's console. eg. {NewConsole=false} |
NewProcessGroup |
boolean |
Whether or not the new process is the root process of a new process group. The process group includes all processes that are descendants of this root process. eg. {NewProcessGroup=false} |
SeparateWOWVDM |
boolean |
Note: This flag is only valid starting a 16-bit Windows-based application. Whether or not the new process runs in a private Virtual DOS Machine (VDM). By default, all 16-bit Windows-based applications run in a single, shared VDM. The advantage of running separately is that a crash only terminates the single VDM; any other programs running in distinct VDMs continue to function normally. Also, 16-bit Windows-based applications that run in separate VDMs have separate input queues, which means that if one application stops responding momentarily, applications in separate VDMs continue to receive input. eg. {SeparateWOWVDM=true} |
Suspended |
boolean |
Whether or not the primary thread of the new process is created in a suspended state. eg.{Suspended=true} |
UnicodeEnvironment boolean Whether or not the environment block uses Unicode characters.
Otherwise, the environment block uses ANSI characters. eg.
{UnicodeEnvironment=true}