|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.Parameter com.jniwrapper.Pointer.Void com.jniwrapper.win32.Handle com.jniwrapper.win32.process.Process com.jniwrapper.win32.process.CurrentProcess
public class CurrentProcess
CurrentProcess class represents a current process and provides various information about it.
Nested Class Summary | |
---|---|
static class |
CurrentProcess.ShutdownFlags
ShutdownFlags class represents system shutdown flags. |
Nested classes/interfaces inherited from class com.jniwrapper.win32.process.Process |
---|
Process.PriorityClass, Process.ProcessResource |
Field Summary |
---|
Fields inherited from class com.jniwrapper.win32.Handle |
---|
INFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0 |
Fields inherited from class com.jniwrapper.Parameter |
---|
LICENSE_TYPE, V |
Constructor Summary | |
---|---|
CurrentProcess()
Creates an instance that corresponds to currently running process. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.jniwrapper.win32.Handle |
---|
clone, closeHandle, equals, waitFor, waitFor |
Methods inherited from class com.jniwrapper.Pointer.Void |
---|
asFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write |
Methods inherited from class com.jniwrapper.Parameter |
---|
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CurrentProcess()
Method Detail |
---|
public long getProcessID()
getProcessID
in class Process
public long getVersion()
getVersion
in class Process
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |