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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
Nested classes/interfaces inherited from interface com.sun.jna.win32.StdCallLibrary
com.sun.jna.win32.StdCallLibrary.StdCallCallback
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final Kernel32
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
Fields inherited from interface com.sun.jna.win32.StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 Details
-
INSTANCE
-
MOVEFILE_COPY_ALLOWED
static final int MOVEFILE_COPY_ALLOWED- See Also:
-
MOVEFILE_CREATE_HARDLINK
static final int MOVEFILE_CREATE_HARDLINK- See Also:
-
MOVEFILE_DELAY_UNTIL_REBOOT
static final int MOVEFILE_DELAY_UNTIL_REBOOT- See Also:
-
MOVEFILE_FAIL_IF_NOT_TRACKABLE
static final int MOVEFILE_FAIL_IF_NOT_TRACKABLE- See Also:
-
MOVEFILE_REPLACE_EXISTING
static final int MOVEFILE_REPLACE_EXISTING- See Also:
-
MOVEFILE_WRITE_THROUGH
static final int MOVEFILE_WRITE_THROUGH- See Also:
-
FILE_ATTRIBUTE_REPARSE_POINT
static final int FILE_ATTRIBUTE_REPARSE_POINT- See Also:
-
SYMBOLIC_LINK_FLAG_DIRECTORY
static final int SYMBOLIC_LINK_FLAG_DIRECTORY- See Also:
-
STILL_ACTIVE
static final int STILL_ACTIVE- See Also:
-
-
Method Details
-
MoveFileExA
-
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:
-
GetTempPathW
int GetTempPathW(int nBuffer, com.sun.jna.Pointer lpBuffer)
-