public class CurrentProcess extends Process
| Modifier and Type | Class and Description |
|---|---|
static class |
CurrentProcess.ShutdownFlags
ShutdownFlags class represents system shutdown flags.
|
Process.PriorityClass, Process.ProcessResourceINFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0| Constructor and Description |
|---|
CurrentProcess()
Creates an instance that corresponds to currently running process.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommandLine()
Returns the command-line string for the current process.
|
long |
getProcessID()
Returns the process identifier of the calling process.
|
long |
getShutdownParameters(CurrentProcess.ShutdownFlags flags)
Returns shutdown parameters for the currently calling process.
|
StartupInfo |
getStartupInfo()
Returns
StartupInfo structure that was specified when the calling process was created. |
long |
getVersion()
Returns the major and minor version numbers of the system on which the
specified process is expected to run.
|
void |
setShutdownParameters(long level,
CurrentProcess.ShutdownFlags flags)
Sets shutdown parameters for the currently calling process.
|
close, getAffinityMask, getApplicationWindows, getExitCode, getGdiObjectsCount, getHandleCount, getIOCounters, getModuleFileName, getModules, getPriorityBoost, getPriorityClass, getProcesses, getProcesses, getProcessFileName, getProcessID, getProcessImageFileName, getProcessMemoryCounters, getProcessTimes, getSystemAffinityMask, getThread, getThreadID, getThreadID, getThreadProcessID, getUSERObjectsCount, getVersion, getWorkingSetSize, isAutoDelete, openProcess, registerResource, setAffinityMask, setAutoDelete, setPriorityBoost, setPriorityClass, setWorkingSetSize, terminate, waitFor, waitForclone, closeHandle, equals, waitFor, waitForasFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, writepublic CurrentProcess()
public long getProcessID()
getProcessID in class Processpublic long getVersion()
getVersion in class Processpublic java.lang.String getCommandLine()
public long getShutdownParameters(CurrentProcess.ShutdownFlags flags)
flags - [out] shutdown flags.public void setShutdownParameters(long level,
CurrentProcess.ShutdownFlags flags)
level - shutdown priority level.flags - shutdown flags.public StartupInfo getStartupInfo()
StartupInfo structure that was specified when the calling process was created.StartupInfo structure that was specified when the calling process was created.