com.jniwrapper.win32.process
Class ProcessSecurityOptions

java.lang.Object
  extended by com.jniwrapper.util.FlagSet
      extended by com.jniwrapper.win32.process.ProcessSecurityOptions

public class ProcessSecurityOptions
extends com.jniwrapper.util.FlagSet

ProcessSecurityOptions class represents a set of options required for opening a process.


Field Summary
static int PROCESS_ALL_ACCESS
           
static int PROCESS_CREATE_PROCESS
           
static int PROCESS_CREATE_THREAD
           
static int PROCESS_DUP_HANDLE
           
static int PROCESS_QUERY_INFORMATION
           
static int PROCESS_SET_INFORMATION
           
static int PROCESS_SET_QUOTA
           
static int PROCESS_SET_SESSIONID
           
static int PROCESS_TERMINATE
           
static int PROCESS_VM_OPERATION
           
static int PROCESS_VM_READ
           
static int PROCESS_VM_WRITE
           
 
Constructor Summary
ProcessSecurityOptions()
           
ProcessSecurityOptions(boolean allAccess)
           
ProcessSecurityOptions(long flags)
           
 
Method Summary
 boolean isAllAccess()
          All possible access rights for a process object.
 boolean isCreateProcess()
          Required to create a process.
 boolean isCreateThread()
          Required to create a thread.
 boolean isDuplicateHandle()
          Required to duplicate a handle.
 boolean isInformation()
          Required to set certain information about a process, such as its priority class.
 boolean isQueryInformation()
          Required to retrieve certain information about a process, such as its exit code and priority class.
 boolean isQuota()
          Required to set memory limits.
 boolean isTerminate()
          Required to terminate a process.
 boolean isVMOperation()
          Required to perform an operation on the address space of a process.
 boolean isVMRead()
          Required to read memory in a process.
 boolean isVMWrite()
          Required to write to memory in a process.
 void setAllAccess(boolean value)
          All possible access rights for a process object.
 void setCreateProcess(boolean value)
          Required to create a process.
 void setCreateThread(boolean value)
          Required to create a thread.
 void setDuplicateHandle(boolean value)
          Required to duplicate a handle.
 void setInformation(boolean value)
          Required to set certain information about a process, such as its priority class.
 void setQueryInformation(boolean value)
          Required to retrieve certain information about a process, such as its exit code and priority class.
 void setQuota(boolean value)
          Required to set memory limits.
 void setTerminate(boolean value)
          Required to terminate a process.
 void setVMOperation(boolean value)
          Required to perform an operation on the address space of a process.
 void setVMRead(boolean value)
          Required to read memory in a process.
 void setVMWrite(boolean value)
          Required to write to memory in a process.
 
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

PROCESS_TERMINATE

public static final int PROCESS_TERMINATE
See Also:
Constant Field Values

PROCESS_CREATE_THREAD

public static final int PROCESS_CREATE_THREAD
See Also:
Constant Field Values

PROCESS_SET_SESSIONID

public static final int PROCESS_SET_SESSIONID
See Also:
Constant Field Values

PROCESS_VM_OPERATION

public static final int PROCESS_VM_OPERATION
See Also:
Constant Field Values

PROCESS_VM_READ

public static final int PROCESS_VM_READ
See Also:
Constant Field Values

PROCESS_VM_WRITE

public static final int PROCESS_VM_WRITE
See Also:
Constant Field Values

PROCESS_DUP_HANDLE

public static final int PROCESS_DUP_HANDLE
See Also:
Constant Field Values

PROCESS_CREATE_PROCESS

public static final int PROCESS_CREATE_PROCESS
See Also:
Constant Field Values

PROCESS_SET_QUOTA

public static final int PROCESS_SET_QUOTA
See Also:
Constant Field Values

PROCESS_SET_INFORMATION

public static final int PROCESS_SET_INFORMATION
See Also:
Constant Field Values

PROCESS_QUERY_INFORMATION

public static final int PROCESS_QUERY_INFORMATION
See Also:
Constant Field Values

PROCESS_ALL_ACCESS

public static final int PROCESS_ALL_ACCESS
Constructor Detail

ProcessSecurityOptions

public ProcessSecurityOptions()

ProcessSecurityOptions

public ProcessSecurityOptions(boolean allAccess)

ProcessSecurityOptions

public ProcessSecurityOptions(long flags)
Method Detail

setAllAccess

public void setAllAccess(boolean value)
All possible access rights for a process object.


isAllAccess

public boolean isAllAccess()
All possible access rights for a process object.


setCreateProcess

public void setCreateProcess(boolean value)
Required to create a process.


isCreateProcess

public boolean isCreateProcess()
Required to create a process.


setCreateThread

public void setCreateThread(boolean value)
Required to create a thread.


isCreateThread

public boolean isCreateThread()
Required to create a thread.


setDuplicateHandle

public void setDuplicateHandle(boolean value)
Required to duplicate a handle.


isDuplicateHandle

public boolean isDuplicateHandle()
Required to duplicate a handle.


setQueryInformation

public void setQueryInformation(boolean value)
Required to retrieve certain information about a process, such as its exit code and priority class.


isQueryInformation

public boolean isQueryInformation()
Required to retrieve certain information about a process, such as its exit code and priority class.


setQuota

public void setQuota(boolean value)
Required to set memory limits.


isQuota

public boolean isQuota()
Required to set memory limits.


setInformation

public void setInformation(boolean value)
Required to set certain information about a process, such as its priority class.


isInformation

public boolean isInformation()
Required to set certain information about a process, such as its priority class.


setTerminate

public void setTerminate(boolean value)
Required to terminate a process.


isTerminate

public boolean isTerminate()
Required to terminate a process.


setVMOperation

public void setVMOperation(boolean value)
Required to perform an operation on the address space of a process.


isVMOperation

public boolean isVMOperation()
Required to perform an operation on the address space of a process.


setVMRead

public void setVMRead(boolean value)
Required to read memory in a process.


isVMRead

public boolean isVMRead()
Required to read memory in a process.


setVMWrite

public void setVMWrite(boolean value)
Required to write to memory in a process.


isVMWrite

public boolean isVMWrite()
Required to write to memory in a process.