public class Kernel32Library extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Kernel32Library.ConsoleCtrlHandler |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addConsoleCtrlHandler(Kernel32Library.ConsoleCtrlHandler handler)
Adds a Console Ctrl Handler.
|
com.google.common.collect.ImmutableList<Object> |
getCallbacks() |
static Kernel32Library |
getInstance() |
boolean |
SetConsoleCtrlHandler(com.sun.jna.win32.StdCallLibrary.StdCallCallback handler,
boolean add)
Native call to the Kernel32 API to set a new Console Ctrl Handler.
|
public static Kernel32Library getInstance()
public boolean addConsoleCtrlHandler(Kernel32Library.ConsoleCtrlHandler handler)
handler - UnsatisfiedLinkError - if the Kernel32 library is not loaded or if the native function is not foundNoClassDefFoundError - if the library for native calls is missingpublic com.google.common.collect.ImmutableList<Object> getCallbacks()
public boolean SetConsoleCtrlHandler(com.sun.jna.win32.StdCallLibrary.StdCallCallback handler,
boolean add)
handler - add - UnsatisfiedLinkError - if the Kernel32 library is not loaded or if the native function is not foundNoClassDefFoundError - if the library for native calls is missingCopyright © 2009–2015. All rights reserved.