| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static void | closeHandle(WinNT.
The handle to be closed - ignored if hnullInvokes |
| public static void | closeHandleRef(WinNT.
The handle reference - ignored if refnullCloses the handle in the reference |
| public static void | closeHandleRefs(WinNT.
The references to close refsCloses all referenced handles. |
| public static void | closeHandles(WinNT.
The handles to be closed handlesInvokes |
| public static void | |
| public static String | Returns: the replaced stringA string that contains one or more environment-variable
strings in the form: %variableName%. For each such
reference, the %variableName% portion is replaced with the
current value of that environment variable.
input)Case is ignored when looking up the environment-variable name. If the name is not found, the %variableName% portion is left unexpanded. Note that this function does not support all the features that Cmd.exe supports. For example, it does not support %variableName:str1=str2% or %variableName:~offset,length%. Expands environment-variable strings and replaces them with the values defined for the current user. |
| public static final String | Returns: The pure GUID value after stripping the "\\?\" prefix and removing the trailing backslash.The volume GUID path as returned by one of the above mentioned calls volumeGUIDPath)Parses and returns the pure GUID value of a volume name obtained
from |
| public static long | Returns: The offset of the first'\0' in the data block
starting at the specified offset - can be the start offset itself if empty
string.The environment block as received from the
GetEnvironmentStrings
function lpszEnvironmentBlock, long Offset within the block to look for the entry offset, boolean If asWideChars)true then the block contains wchar_t
instead of "plain old" chars
|
| public static String | Returns: Formatted message in the default locale.The error code code)Format a message from a code. |
| public static String | Returns: Formatted message in the specified locale.The error code code, int The primary language identifier primaryLangId, int The sublanguage identifier sublangId)Format a message from the value obtained from
|
| public static String | Returns: Formatted message in the default locale.HRESULT codeFormat a message from an HRESULT. |
| public static String | Returns: Formatted message in the specified locale.HRESULT code,The primary language identifier primaryLangId, int The primary language identifier sublangId)Format a message from an HRESULT. |
| public static String | Returns: Formatted message in the default locale.Error code, typically a result of GetLastError. code)Format a system message from an error code. |
| public static String | Returns: Formatted message in the specified locale.Error code, typically a result of GetLastError. code, int The primary language identifier primaryLangId, int The primary language identifier sublangId)Format a system message from an error code. |
| public static void | freeGlobalMemory(Pointer
The ptr)Pointer to the memory to be released - ignored if NULLInvokes |
| public static void | freeLocalMemory(Pointer
The ptr)Pointer to the memory to be released - ignored if NULLInvokes |
| public static String | |
| public static WinDef. | Returns: The priority class of the current process.Gets the priority class of the current process. |
| public static int | Returns: The priority value of the current thread.Gets the priority value of the current thread. |
| public static int | |
| public static String | Returns: Value of an environment variable.Name of the environment variable. name)Get the value of an environment variable. |
| public static Map | Returns: The current process environment as aMap.Uses the |
| public static Map | Returns: AMap of the parsed name=value pairsNote if the environment block is The environment block as received from the
GetEnvironmentStrings
function lpszEnvironmentBlock, long Offset within the block to parse the data offset)
|
| public static int | Returns: The attributes of the specified file or directory.The name of the file or directory. fileName)Retrieves file system attributes for a specified file or directory. |
| public static int | Returns: file typefile name fileName)Retrieves the result of GetFileType, provided the file exists. |
| public static String | Returns: Obtains the human-readable error message text from the last error that occurred by invocatingKernel32.GetLastError() in the default locale.
|
| public static String | Returns: Obtains the human-readable error message text from the last error that occurred by invocatingKernel32.GetLastError() in the specified locale.
|
| public static List | |
| public static final WinNT. | Returns: the array of processor information.Convenience method to get the processor information. |
| public static final WinNT. | Returns: the array of processor information.The type of relationship to retrieve. This parameter can be
one of the following values:
relationshipType)LOGICAL_PROCESSOR_RELATIONSHIP#RelationCache,
LOGICAL_PROCESSOR_RELATIONSHIP#RelationGroup,
LOGICAL_PROCESSOR_RELATIONSHIP#RelationNumaNode,
LOGICAL_PROCESSOR_RELATIONSHIP#RelationProcessorCore,
LOGICAL_PROCESSOR_RELATIONSHIP#RelationProcessorPackage,
or LOGICAL_PROCESSOR_RELATIONSHIP#RelationAllConvenience method to get the processor information. |
| public static List | Returns: All the modules in the process.The process ID to get executable modules for processID)Returns all the executable modules for a given process ID. |
| public static final int | Returns: The retrieved integer, or the default if not found.The name of the section in the initialization file. appName, final String The name of the key whose value is to be retrieved. This value
is in the form of a string; the
keyName, final int Kernel32#GetPrivateProfileInt function converts the
string into an integer and returns the integer.The default value to return if the key name cannot be found in
the initialization file. defaultValue, final String The name of the initialization file. If this parameter does
not contain a full path to the file, the system searches for
the file in the Windows directory. fileName)Retrieves an integer associated with a key in the specified section of an initialization file. |
| public static final String[] | Returns: The key name and value pairs associated with the named section.The name of the section in the initialization file. appName, final String The name of the initialization file. If this parameter does not contain a full path to the file, the system searches for the file in the
Windows directory. fileName)Retrieves all the keys and values for the specified section of an initialization file. |
| public static final String[] | Returns: the section names associated with the named file.The name of the initialization file. If this parameter is fileName)NULL, the function searches the Win.ini file. If this parameter does not
contain a full path to the file, the system searches for the file in the Windows directory.Retrieves the names of all sections in an initialization file. |
| public static final String | Returns:
If neither
If either
In the event the initialization file specified by
The name of the section containing the key name. If this
parameter is lpAppName, final String null, the
Kernel32#GetPrivateProfileString function copies all
section names in the file to the supplied buffer.The name of the key whose associated string is to be
retrieved. If this parameter is lpKeyName, final String null, all key names in
the section specified by the lpAppName parameter are
returned.A default string. If the lpDefault, final String lpKeyName key cannot be found
in the initialization file,
Kernel32#GetPrivateProfileString returns the default.
If this parameter is null, the default is an empty
string, "".
Avoid specifying a default string with trailing blank
characters. The function inserts a The name of the initialization file. If this parameter does
not contain a full path to the file, the system searches for
the file in the Windows directory. lpFileName)Retrieves a string from the specified section in an initialization file. |
| public static WinDef. | getProcessPriority(final int
Identifier for the running process. pid)Gets the priority class of the specified process. |
| public static byte[] | Returns: The resource bytes, or null if no such resource exists.The path to the executable file path, String The type of the resource (either a type name or type ID is
allowed) type, String The name or ID of the resource name)Gets the specified resource out of the specified executable file |
| public static Map | Returns: A map of resource type name/ID => resources.A map key + a single list item + the path to the executable can be handed off to getResource() to actually get the resource. The path to the executable file path)Gets a list of all resources from the specified executable file |
| public static String | |
| public static int | getThreadPriority(final int
Identifier for the running thread. tid)Gets the priority value of the specified thread. |
| public static final List | Returns: The parsed resultThe volume name lpszVolumeName)Invokes and parses the result of |
| public static boolean | Returns: Returns true, if and only if the given priority value was validThe priority value to test. dwPriorityClassTest whether the given priority class is valid. |
| public static boolean | Returns: Returns true, if and only if the given priority value was validThe priority value to test. nPriority)Test whether the given thread priority is valid. |
| public static boolean | Returns: true if the block contains wchar_t instead of
"plain old" charsThe environment block as received from the
GetEnvironmentStrings
function lpszEnvironmentBlock, long offset offset)Attempts to determine whether the data block uses |
| private static boolean | |
| public static final List | Returns: The parsed resultThe device name lpszDeviceName, int The work buffer size to use for the query maxTargetSize)Invokes the |
| public static final String | Returns: the full path of the process's executable file of null if failed. To get extended error information, call GetLastError.Identifier for the running process pid, int 0 - The name should use the Win32 path format.
1(WinNT.PROCESS_NAME_NATIVE) - The name should use the native system path format. dwFlags)This function retrieves the full path of the executable file of a given process identifier. |
| public static final String | Returns: the full path of the process's executable file of null if failed. To get extended error information, call GetLastError.Handle for the running process hProcess,0 - The name should use the Win32 path format.
1(WinNT.PROCESS_NAME_NATIVE) - The name should use the native system path format. dwFlags)This function retrieves the full path of the executable file of a given process. |
| public static String | readEnvironmentStringBlockEntry(Pointer
The environment block as received from the
GetEnvironmentStrings
function lpszEnvironmentBlock, long Offset within the block to look for the entry offset, boolean If asWideChars)true then the block contains wchar_t
instead of "plain old" chars
|
| public static void | setCurrentProcessBackgroundMode(final boolean
If true, enables "background" processing mode, otherwise disables it. enable)Enables or disables "background" processing mode for the current process |
| public static void | setCurrentProcessPriority(final WinDef.
The priority class for the process. dwPriorityClassSets the priority class for the current process. |
| public static void | setCurrentThreadBackgroundMode(final boolean
If true, enables "background" processing mode, otherwise disables it. enable)Enables or disables "background" processing mode for the current thread |
| public static void | setCurrentThreadPriority(final int
The priority value for the thread. nPriority)Sets the priority value for the current thread. |
| public static void | setProcessPriority(final int
Identifier for the running process. pid, final WinDef.The priority class for the process. dwPriorityClassSets the priority class for the specified process. |
| public static void | setThreadPriority(final int
Identifier for the running thread. tid, final int The priority value for the thread. nPriority)Sets the priority value for the specified thread. |
| public static final void | writePrivateProfileSection(final String
The name of the section in which data is written. This section name is typically the name of the calling application. appName, final String[] The new key names and associated values that are to be written to the named section. Each entry must be of the form strings, final String key=value.The name of the initialization file. If this parameter does not contain a full path for the file, the function searches the Windows directory
for the file. If the file does not exist and lpFileName does not contain a full path, the function creates the file in the Windows directory. fileName)
|
| public static final void | writePrivateProfileString(final String appName, final String keyName, final String string, final String fileName)
|