com.jniwrapper.win32.process
Class ProcessOptions

java.lang.Object
  extended bycom.jniwrapper.util.FlagSet
      extended bycom.jniwrapper.win32.process.ProcessOptions

public class ProcessOptions
extends com.jniwrapper.util.FlagSet

ProcessCreationOptions class represents options for process creation.


Field Summary
static int CREATE_DEFAULT_ERROR_MODE
           
static int CREATE_FORCEDOS
           
static int CREATE_NEW_CONSOLE
           
static int CREATE_NEW_PROCESS_GROUP
           
static int CREATE_NO_WINDOW
           
static int CREATE_SHARED_WOW_VDM
           
static int CREATE_SUSPENDED
           
static int CREATE_UNICODE_ENVIRONMENT
           
static int SYNCHRONIZE
           
 
Constructor Summary
ProcessOptions()
           
ProcessOptions(boolean createDefault)
           
ProcessOptions(long flags)
           
 
Method Summary
 boolean isDefaultErrorMode()
          The new process does not inherit the error mode of the calling process.
 boolean isNewConsole()
          The new process has a new console, instead of inheriting its parent's console (the default).
 boolean isNewProcessGroup()
          The new process is the root process of a new process group.
 boolean isNoWindow()
          This flag is valid only when starting a console application.
 boolean isSharedWOW_VDM()
          The flag is valid only when starting a 16-bit Windows-based application.
 boolean isSuspended()
          The primary thread of the new process is created in a suspended state.
 boolean isSynchronize()
          Requires to wait for the process to terminate using the wait functions.
 boolean isUnicodeEnvironment()
          Indicates the format of the Environment parameter.
 void setDefaultErrorMode(boolean value)
          The new process does not inherit the error mode of the calling process.
 void setNewConsole(boolean value)
          The new process has a new console, instead of inheriting its parent's console (the default).
 void setNewProcessGroup(boolean value)
          The new process is the root process of a new process group.
 void setNoWindow(boolean value)
          This flag is valid only when starting a console application.
 void setSharedWOW_VDM(boolean value)
          The flag is valid only when starting a 16-bit Windows-based application.
 void setSuspended(boolean value)
          The primary thread of the new process is created in a suspended state.
 void setSynchronize(boolean value)
          Requires to wait for the process to terminate using the wait functions.
 void setUnicodeEnvironment(boolean value)
          Indicates the format of the Environment parameter.
 
Methods inherited from class com.jniwrapper.util.FlagSet
add, and, clear, contains, getBit, getBits, getFlags, getMask, or, remove, setBit, setBits, setupFlag, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATE_NO_WINDOW

public static final int CREATE_NO_WINDOW
See Also:
Constant Field Values

CREATE_DEFAULT_ERROR_MODE

public static final int CREATE_DEFAULT_ERROR_MODE
See Also:
Constant Field Values

CREATE_NEW_CONSOLE

public static final int CREATE_NEW_CONSOLE
See Also:
Constant Field Values

CREATE_NEW_PROCESS_GROUP

public static final int CREATE_NEW_PROCESS_GROUP
See Also:
Constant Field Values

CREATE_SHARED_WOW_VDM

public static final int CREATE_SHARED_WOW_VDM
See Also:
Constant Field Values

CREATE_SUSPENDED

public static final int CREATE_SUSPENDED
See Also:
Constant Field Values

CREATE_UNICODE_ENVIRONMENT

public static final int CREATE_UNICODE_ENVIRONMENT
See Also:
Constant Field Values

CREATE_FORCEDOS

public static final int CREATE_FORCEDOS
See Also:
Constant Field Values

SYNCHRONIZE

public static final int SYNCHRONIZE
See Also:
Constant Field Values
Constructor Detail

ProcessOptions

public ProcessOptions()

ProcessOptions

public ProcessOptions(long flags)

ProcessOptions

public ProcessOptions(boolean createDefault)
Method Detail

setNoWindow

public void setNoWindow(boolean value)
This flag is valid only when starting a console application. If set, the console application is run without a console window.


isNoWindow

public boolean isNoWindow()
This flag is valid only when starting a console application. If set, the console application is run without a console window.


setDefaultErrorMode

public void setDefaultErrorMode(boolean value)
The new process does not inherit the error mode of the calling process. Instead, the new process gets the current default error mode.


isDefaultErrorMode

public boolean isDefaultErrorMode()
The new process does not inherit the error mode of the calling process. Instead, the new process gets the current default error mode.


setNewConsole

public void setNewConsole(boolean value)
The new process has a new console, instead of inheriting its parent's console (the default).


isNewConsole

public boolean isNewConsole()
The new process has a new console, instead of inheriting its parent's console (the default).


setNewProcessGroup

public void setNewProcessGroup(boolean value)
The new process is the root process of a new process group.


isNewProcessGroup

public boolean isNewProcessGroup()
The new process is the root process of a new process group.


setSharedWOW_VDM

public void setSharedWOW_VDM(boolean value)
The flag is valid only when starting a 16-bit Windows-based application.


isSharedWOW_VDM

public boolean isSharedWOW_VDM()
The flag is valid only when starting a 16-bit Windows-based application.


setSuspended

public void setSuspended(boolean value)
The primary thread of the new process is created in a suspended state.


isSuspended

public boolean isSuspended()
The primary thread of the new process is created in a suspended state.


setUnicodeEnvironment

public void setUnicodeEnvironment(boolean value)
Indicates the format of the Environment parameter.


isUnicodeEnvironment

public boolean isUnicodeEnvironment()
Indicates the format of the Environment parameter.


setSynchronize

public void setSynchronize(boolean value)
Requires to wait for the process to terminate using the wait functions.


isSynchronize

public boolean isSynchronize()
Requires to wait for the process to terminate using the wait functions.