public class Kernel32Utils extends Object
| Constructor and Description |
|---|
Kernel32Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createSymbolicLink(File symlink,
String target,
boolean dirLink) |
static File |
getTempDir() |
static int |
getWin32FileAttributes(File file) |
static boolean |
isJunctionOrSymlink(File file) |
static int |
waitForExitProcess(com.sun.jna.Pointer hProcess)
Given the process handle, waits for its completion and returns the exit code.
|
public static int waitForExitProcess(com.sun.jna.Pointer hProcess)
throws InterruptedException
InterruptedExceptionpublic static int getWin32FileAttributes(File file) throws IOException
IOExceptionpublic static void createSymbolicLink(File symlink, String target, boolean dirLink) throws IOException
target - If relative, resolved against the location of the symlink.
If absolute, it's absolute.UnsatisfiedLinkError - If the function is not exported by kernel32.
See http://msdn.microsoft.com/en-us/library/windows/desktop/aa363866(v=vs.85).aspx
for compatibility info.IOExceptionpublic static boolean isJunctionOrSymlink(File file) throws IOException
IOExceptionpublic static File getTempDir()
Copyright © 2019. All rights reserved.