jnr.posix
Interface WindowsLibC

All Superinterfaces:
LibC

public interface WindowsLibC
extends LibC


Nested Class Summary
 
Nested classes/interfaces inherited from interface jnr.posix.LibC
LibC.LibCSignalHandler
 
Field Summary
static int CREATE_UNICODE_ENVIRONMENT
           
static int FILE_TYPE_CHAR
           
static int FILE_TYPE_DISK
           
static int FILE_TYPE_PIPE
           
static int FILE_TYPE_REMOTE
           
static int FILE_TYPE_UNKNOWN
           
static int INFINITE
           
static int NORMAL_PRIORITY_CLASS
           
static int STD_ERROR_HANDLE
           
static int STD_INPUT_HANDLE
           
static int STD_OUTPUT_HANDLE
           
 
Method Summary
 int _close(int fd)
           
 int _getpid()
           
 int _open_osfhandle(HANDLE handle, int flags)
           
 int _stat64(CharSequence path, FileStat stat)
           
 int _umask(int mask)
           
 int _wchdir(WString path)
           
 int _wchmod(WString path, int pmode)
           
 int _wmkdir(WString path)
           
 boolean CloseHandle(HANDLE handle)
           
 HANDLE CreateFileW(byte[] lpFileName, int dwDesiredAccess, int dwShareMode, jnr.ffi.Pointer lpSecurityAttributes, int dwCreationDisposition, int dwFlagsAndAttributes, int hTemplateFile)
           
 boolean CreateHardLinkW(WString oldname, WString newName, WString reserved)
           
 boolean CreateProcessW(byte[] applicationName, ByteBuffer buffer, WindowsSecurityAttributes processAttributes, WindowsSecurityAttributes threadAttributes, int inheritHandles, int creationFlags, jnr.ffi.Pointer envp, byte[] currentDirectory, WindowsStartupInfo startupInfo, WindowsProcessInformation processInformation)
           
 boolean GetExitCodeProcess(HANDLE handle, jnr.ffi.byref.IntByReference exitCode)
           
 boolean GetExitCodeProcess(HANDLE handle, jnr.ffi.Pointer exitCode)
           
 int GetFileAttributesW(WString path)
           
 int GetFileSize(HANDLE handle, jnr.ffi.byref.IntByReference outSizeHigh)
           
 int GetFileType(HANDLE handle)
           
 HANDLE GetStdHandle(int stdHandle)
           
 boolean RemoveDirectoryW(WString path)
           
 boolean SetEnvironmentVariableW(WString envName, WString envValue)
           
 int SetFileAttributesW(WString path, int flags)
           
 boolean SetFileTime(HANDLE hFile, FileTime lpCreationTime, FileTime lpLastAccessTime, FileTime lpLastWriteTime)
           
 int WaitForSingleObject(HANDLE handle, int milliseconds)
           
 
Methods inherited from interface jnr.posix.LibC
chdir, chmod, chown, close, dup, dup2, endgrent, endpwent, execv, execve, fchmod, fchown, fcntl, fcntl, fcntl, fdatasync, flock, fork, fstat, fstat64, fsync, ftruncate, futimes, getcwd, getdtablesize, getegid, getenv, geteuid, getgid, getgrent, getgrgid, getgrnam, getlogin, getpgid, getpgid, getpgrp, getpid, getppid, getpriority, getpwent, getpwnam, getpwuid, getuid, isatty, kill, lchmod, lchown, link, lseek, lstat, lstat64, mkdir, open, pipe, pread, pread, pwrite, pwrite, read, read, readlink, recvmsg, rmdir, sendmsg, setegid, setenv, seteuid, setgid, setgrent, setpgid, setpgrp, setpriority, setpwent, setsid, setuid, signal, socketpair, stat, stat64, symlink, sysconf, times, umask, unlink, unsetenv, utimes, wait, waitpid, write, write
 

Field Detail

STD_INPUT_HANDLE

static final int STD_INPUT_HANDLE
See Also:
Constant Field Values

STD_OUTPUT_HANDLE

static final int STD_OUTPUT_HANDLE
See Also:
Constant Field Values

STD_ERROR_HANDLE

static final int STD_ERROR_HANDLE
See Also:
Constant Field Values

NORMAL_PRIORITY_CLASS

static final int NORMAL_PRIORITY_CLASS
See Also:
Constant Field Values

CREATE_UNICODE_ENVIRONMENT

static final int CREATE_UNICODE_ENVIRONMENT
See Also:
Constant Field Values

INFINITE

static final int INFINITE
See Also:
Constant Field Values

FILE_TYPE_DISK

static final int FILE_TYPE_DISK
See Also:
Constant Field Values

FILE_TYPE_CHAR

static final int FILE_TYPE_CHAR
See Also:
Constant Field Values

FILE_TYPE_PIPE

static final int FILE_TYPE_PIPE
See Also:
Constant Field Values

FILE_TYPE_REMOTE

static final int FILE_TYPE_REMOTE
See Also:
Constant Field Values

FILE_TYPE_UNKNOWN

static final int FILE_TYPE_UNKNOWN
See Also:
Constant Field Values
Method Detail

_open_osfhandle

int _open_osfhandle(HANDLE handle,
                    int flags)

_close

int _close(int fd)

_getpid

int _getpid()

_stat64

int _stat64(CharSequence path,
            FileStat stat)

_umask

int _umask(int mask)

_wmkdir

int _wmkdir(WString path)

RemoveDirectoryW

boolean RemoveDirectoryW(WString path)

_wchmod

int _wchmod(WString path,
            int pmode)

_wchdir

int _wchdir(WString path)

CreateProcessW

boolean CreateProcessW(byte[] applicationName,
                       ByteBuffer buffer,
                       WindowsSecurityAttributes processAttributes,
                       WindowsSecurityAttributes threadAttributes,
                       int inheritHandles,
                       int creationFlags,
                       jnr.ffi.Pointer envp,
                       byte[] currentDirectory,
                       WindowsStartupInfo startupInfo,
                       WindowsProcessInformation processInformation)

GetFileAttributesW

int GetFileAttributesW(WString path)

SetFileAttributesW

int SetFileAttributesW(WString path,
                       int flags)

GetExitCodeProcess

boolean GetExitCodeProcess(HANDLE handle,
                           jnr.ffi.Pointer exitCode)

GetExitCodeProcess

boolean GetExitCodeProcess(HANDLE handle,
                           jnr.ffi.byref.IntByReference exitCode)

GetFileType

int GetFileType(HANDLE handle)

GetFileSize

int GetFileSize(HANDLE handle,
                jnr.ffi.byref.IntByReference outSizeHigh)

GetStdHandle

HANDLE GetStdHandle(int stdHandle)

CreateHardLinkW

boolean CreateHardLinkW(WString oldname,
                        WString newName,
                        WString reserved)

CreateFileW

HANDLE CreateFileW(byte[] lpFileName,
                   int dwDesiredAccess,
                   int dwShareMode,
                   jnr.ffi.Pointer lpSecurityAttributes,
                   int dwCreationDisposition,
                   int dwFlagsAndAttributes,
                   int hTemplateFile)

SetEnvironmentVariableW

boolean SetEnvironmentVariableW(WString envName,
                                WString envValue)

SetFileTime

boolean SetFileTime(HANDLE hFile,
                    FileTime lpCreationTime,
                    FileTime lpLastAccessTime,
                    FileTime lpLastWriteTime)

CloseHandle

boolean CloseHandle(HANDLE handle)

WaitForSingleObject

int WaitForSingleObject(HANDLE handle,
                        int milliseconds)


Copyright © 2014. All Rights Reserved.