com.sun.jna.win32.StdCallLibrary Java Examples
The following examples show how to use
com.sun.jna.win32.StdCallLibrary.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LibraryUtil.java From canon-sdk-java with MIT License | 5 votes |
private List<String> getConstantInterfaceNames() { final Class<?>[] classes = EdsdkLibrary.class.getClasses(); if (classes.length == 0) throw new IllegalStateException(""); return Arrays.stream(classes) .filter(aClass -> !Structure.class.isAssignableFrom(aClass)) .filter(aClass -> !PointerType.class.isAssignableFrom(aClass)) .filter(aClass -> !Structure.ByReference.class.isAssignableFrom(aClass)) .filter(aClass -> !StdCallLibrary.StdCallCallback.class.isAssignableFrom(aClass)) .map(Class::getSimpleName) .collect(Collectors.toList()); }
Example #2
Source File: JNAKernel32Library.java From Elasticsearch with Apache License 2.0 | 2 votes |
/** * Native call to the Kernel32 API to set a new Console Ctrl Handler. * * @return true if the handler is correctly set * @throws java.lang.UnsatisfiedLinkError if the Kernel32 library is not loaded or if the native function is not found * @throws java.lang.NoClassDefFoundError if the library for native calls is missing */ native boolean SetConsoleCtrlHandler(StdCallLibrary.StdCallCallback handler, boolean add);
Example #3
Source File: JNAKernel32Library.java From crate with Apache License 2.0 | 2 votes |
/** * Native call to the Kernel32 API to set a new Console Ctrl Handler. * * @return true if the handler is correctly set * @throws java.lang.UnsatisfiedLinkError if the Kernel32 library is not loaded or if the native function is not found * @throws java.lang.NoClassDefFoundError if the library for native calls is missing */ @SuppressWarnings("checkstyle:methodname") native boolean SetConsoleCtrlHandler(StdCallLibrary.StdCallCallback handler, boolean add);