Top Description Inners Constructors Methods
org.jruby.util

public Class WindowsFFI

extends Object
Class Inheritance
Imports
jnr.ffi.annotations.Out, jnr.ffi.byref.IntByReference, jnr.ffi.types.intptr_t, jnr.ffi.CallingConvention, .LibraryLoader

A binding of a few key win32 functions we need to behave properly.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static WindowsFFI.Kernel32
public static WindowsFFI.Kernel32
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WindowsFFIback to summary
public WindowsFFI()

Method Detail

getKernel32back to summary
public static WindowsFFI.Kernel32 getKernel32()
kernel32back to summary
public static WindowsFFI.Kernel32 kernel32()
org.jruby.util back to summary

public Interface WindowsFFI.Kernel32


Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int

Method Summary

Modifier and TypeMethod and Description
public int
public int
GetExitCodeProcess(Pointer hProcess, IntByReference pointerToExitCodeDword)

public int
public int
GetProcessId(long handle)

public Pointer
OpenProcess(int dwDesiredAccess, int bInheritHandle, int dwProcessId)

public int
SetLastError(int ErrorCode)

public int
TerminateProcess(Pointer hProcess, int uExitCode)

Field Detail

ERROR_INVALID_PARAMETERback to summary
public static final int ERROR_INVALID_PARAMETER
PROCESS_QUERY_INFORMATIONback to summary
public static final int PROCESS_QUERY_INFORMATION
PROCESS_TERMINATEback to summary
public static final int PROCESS_TERMINATE
STILL_ACTIVEback to summary
public static final int STILL_ACTIVE

Method Detail

CloseHandleback to summary
public int CloseHandle(Pointer handle)
GetExitCodeProcessback to summary
public int GetExitCodeProcess(Pointer hProcess, IntByReference pointerToExitCodeDword)
GetLastErrorback to summary
public int GetLastError()
GetProcessIdback to summary
public int GetProcessId(long handle)
OpenProcessback to summary
public Pointer OpenProcess(int dwDesiredAccess, int bInheritHandle, int dwProcessId)
SetLastErrorback to summary
public int SetLastError(int ErrorCode)
TerminateProcessback to summary
public int TerminateProcess(Pointer hProcess, int uExitCode)
org.jruby.util back to summary

private final Class WindowsFFI.SingletonHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final WindowsFFI.Kernel32

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Kernel32back to summary
pack-priv static final WindowsFFI.Kernel32 Kernel32

Constructor Detail

SingletonHolderback to summary
private SingletonHolder()