Java 类com.sun.jna.win32.StdCallLibrary 实例源码

项目:JNAerator    文件:JNADeclarationsConverter.java   
@Override
public Struct convertCallback(FunctionSignature functionSignature, Signatures signatures, Identifier callerLibraryName) {
    Struct decl = super.convertCallback(functionSignature, signatures, callerLibraryName);
    if (decl != null) {
        List<Modifier> mods = functionSignature.getFunction().getModifiers();
        decl.setParents(Arrays.asList((SimpleTypeRef) typeRef(
                functionSignature.getFunction().hasModifier(ModifierType.__stdcall)
                ? StdCallLibrary.StdCallCallback.class
                : result.config.runtime.callbackClass)));
    }
    return decl;
}
项目:elasticsearch_my    文件:JNAKernel32Library.java   
/**
 * 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);
项目:Elasticsearch    文件:JNAKernel32Library.java   
/**
 * 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);