Package hudson.util.jna
Interface Kernel32
-
- All Superinterfaces:
com.sun.jna.AltCallingConvention
,com.sun.jna.Library
,com.sun.jna.win32.StdCall
,com.sun.jna.win32.StdCallLibrary
public interface Kernel32 extends com.sun.jna.win32.StdCallLibrary
JNA interface to Windows Kernel32 exports.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description static int
FILE_ATTRIBUTE_REPARSE_POINT
static Kernel32
INSTANCE
static int
MOVEFILE_COPY_ALLOWED
static int
MOVEFILE_CREATE_HARDLINK
static int
MOVEFILE_DELAY_UNTIL_REBOOT
static int
MOVEFILE_FAIL_IF_NOT_TRACKABLE
static int
MOVEFILE_REPLACE_EXISTING
static int
MOVEFILE_WRITE_THROUGH
static int
STILL_ACTIVE
static int
SYMBOLIC_LINK_FLAG_DIRECTORY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
CreateSymbolicLinkW(com.sun.jna.WString lpSymlinkFileName, com.sun.jna.WString lpTargetFileName, int dwFlags)
Creates a symbolic link.boolean
GetExitCodeProcess(com.sun.jna.Pointer handle, com.sun.jna.ptr.IntByReference r)
int
GetFileAttributesW(com.sun.jna.WString lpFileName)
int
GetTempPathW(int nBuffer, com.sun.jna.Pointer lpBuffer)
boolean
MoveFileExA(String existingFileName, String newFileName, int flags)
int
WaitForSingleObject(com.sun.jna.Pointer handle, int milliseconds)
-
-
-
Field Detail
-
INSTANCE
static final Kernel32 INSTANCE
-
MOVEFILE_COPY_ALLOWED
static final int MOVEFILE_COPY_ALLOWED
- See Also:
- Constant Field Values
-
MOVEFILE_CREATE_HARDLINK
static final int MOVEFILE_CREATE_HARDLINK
- See Also:
- Constant Field Values
-
MOVEFILE_DELAY_UNTIL_REBOOT
static final int MOVEFILE_DELAY_UNTIL_REBOOT
- See Also:
- Constant Field Values
-
MOVEFILE_FAIL_IF_NOT_TRACKABLE
static final int MOVEFILE_FAIL_IF_NOT_TRACKABLE
- See Also:
- Constant Field Values
-
MOVEFILE_REPLACE_EXISTING
static final int MOVEFILE_REPLACE_EXISTING
- See Also:
- Constant Field Values
-
MOVEFILE_WRITE_THROUGH
static final int MOVEFILE_WRITE_THROUGH
- See Also:
- Constant Field Values
-
FILE_ATTRIBUTE_REPARSE_POINT
static final int FILE_ATTRIBUTE_REPARSE_POINT
- See Also:
- Constant Field Values
-
SYMBOLIC_LINK_FLAG_DIRECTORY
static final int SYMBOLIC_LINK_FLAG_DIRECTORY
- See Also:
- Constant Field Values
-
STILL_ACTIVE
static final int STILL_ACTIVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
WaitForSingleObject
int WaitForSingleObject(com.sun.jna.Pointer handle, int milliseconds)
-
GetFileAttributesW
int GetFileAttributesW(com.sun.jna.WString lpFileName)
-
GetExitCodeProcess
boolean GetExitCodeProcess(com.sun.jna.Pointer handle, com.sun.jna.ptr.IntByReference r)
-
CreateSymbolicLinkW
boolean CreateSymbolicLinkW(com.sun.jna.WString lpSymlinkFileName, com.sun.jna.WString lpTargetFileName, int dwFlags)
Creates a symbolic link. Windows Vista+, Windows Server 2008+- Parameters:
lpSymlinkFileName
- Symbolic link to be createdlpTargetFileName
- Target of the link.dwFlags
- 0 orSYMBOLIC_LINK_FLAG_DIRECTORY
- See Also:
- MSDN
-
GetTempPathW
int GetTempPathW(int nBuffer, com.sun.jna.Pointer lpBuffer)
-
-