|
JNA API> 3.3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jna.platform.win32.Kernel32Util
public abstract class Kernel32Util
Kernel32 utility API.
Constructor Summary | |
---|---|
Kernel32Util()
|
Method Summary | |
---|---|
static void |
deleteFile(String filename)
|
static String |
formatMessageFromHR(WinNT.HRESULT code)
Format a message from an HRESULT. |
static String |
formatMessageFromLastErrorCode(int code)
Format a system message from an error code. |
static String |
getComputerName()
Get current computer NetBIOS name. |
static int |
getFileAttributes(String fileName)
Retrieves file system attributes for a specified file or directory. |
static String[] |
getLogicalDriveStrings()
Returns valid drives in the system. |
static String |
getTempPath()
Return the path designated for temporary files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Kernel32Util()
Method Detail |
---|
public static String getComputerName()
public static String formatMessageFromHR(WinNT.HRESULT code)
code
- HRESULT
public static String formatMessageFromLastErrorCode(int code)
code
- Error code, typically a result of GetLastError.
public static String getTempPath()
public static void deleteFile(String filename)
public static String[] getLogicalDriveStrings()
public static int getFileAttributes(String fileName)
fileName
- The name of the file or directory.
|
JNA API> 3.3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |