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
InterruptedException
public static int getWin32FileAttributes(File file) throws IOException
IOException
public 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.IOException
public static boolean isJunctionOrSymlink(File file) throws IOException
IOException
public static File getTempDir()
Copyright © 2017. All rights reserved.