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
    • Method Detail

      • MoveFileExA

        boolean MoveFileExA​(String existingFileName,
                            String newFileName,
                            int flags)
        See http://msdn.microsoft.com/en-us/library/aa365240(VS.85).aspx
      • 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 created
        lpTargetFileName - Target of the link.
        dwFlags - 0 or SYMBOLIC_LINK_FLAG_DIRECTORY
        See Also:
        MSDN
      • GetTempPathW

        int GetTempPathW​(int nBuffer,
                         com.sun.jna.Pointer lpBuffer)