• 大小: 67MB
    文件类型: .7z
    金币: 1
    下载: 0 次
    发布日期: 2022-11-30
  • 语言: 其他
  • 标签: jdk1.7  

资源简介

jdk1.7 32位 免安装版 jdk1.7 32位 免安装版

资源截图

代码片段和文件信息

/*
 * Copyright (c) 2005 2010 Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * @(#)AccessBridgeCalls.c      1.25 05/08/22
 */

/*
 * Wrapper functions around calls to the AccessBridge DLL
 */


#include 
#include 


//#define ACCESSBRIDGE_32
//#define ACCESSBRIDGE_64

#include “AccessBridgeCalls.h“
#include “AccessBridgeDebug.h“

#ifdef __cplusplus
extern “C“ {
#endif

    HINSTANCE theAccessBridgeInstance;
    AccessBridgeFPs theAccessBridge;

    BOOL theAccessBridgeInitializedFlag = FALSE;

#define LOAD_FP(result type name) \
    PrintDebugString(“LOAD_FP loading: %s ...“ name); \
    if ((theAccessBridge.result = \
        (type) GetProcAddress(theAccessBridgeInstance name)) == (type) 0) { \
        PrintDebugString(“LOAD_FP failed: %s“ name); \
        return FALSE; \
    }

    BOOL initializeAccessBridge() {

#ifdef ACCESSBRIDGE_ARCH_32 // For 32bit AT new bridge
        theAccessBridgeInstance = LoadLibrary(“WINDOWSACCESSBRIDGE-32“);
#else
#ifdef ACCESSBRIDGE_ARCH_64 // For 64bit AT new bridge
                theAccessBridgeInstance = LoadLibrary(“WINDOWSACCESSBRIDGE-64“);
#else // legacy
        theAccessBridgeInstance = LoadLibrary(“WINDOWSACCESSBRIDGE“);
#endif
#endif
        if (theAccessBridgeInstance != 0) {
            LOAD_FP(Windows_run Windows_runFP “Windows_run“);

            LOAD_FP(SetJavaShutdown SetJavaShutdownFP “setJavaShutdownFP“);
            LOAD_FP(SetFocusGained SetFocusGainedFP “setFocusGainedFP“);
            LOAD_FP(SetFocusLost SetFocusLostFP “setFocusLostFP“);

            LOAD_FP(SetCaretUpdate SetCaretUpdateFP “setCaretUpdateFP“);

            LOAD_FP(SetMouseClicked SetMouseClickedFP “setMouseClickedFP“);
            LOAD_FP(SetMouseEntered SetMouseEnteredFP “setMouseEnteredFP“);
            LOAD_FP(SetMouseExited SetMouseExitedFP “setMouseExitedFP“);
            LOAD_FP(SetMousePressed SetMousePressedFP “setMousePressedFP“);
            LOAD_FP(SetMouseReleased SetMouseReleasedFP “setMouseReleasedFP“);

            LOAD_FP(SetMenuCanceled SetMenuCanceledFP “setMenuCanceledFP“);
            LOAD_FP(SetMenuDeselected SetMenuDeselectedFP “setMenuDeselectedFP“);
            LOAD_FP(SetMenuSelected SetMenuSelectedFP “setMenuSelectedFP“);
            LOAD_FP(SetPopupMenuCanceled SetPopupMenuCanceledFP “setPopupMenuCanceledFP“);
            LOAD_FP(SetPopupMenuWillBecomeInvisible SetPopupMenuWillBecomeInvisibleFP “setPopupMenuWillBecomeInvisibleFP“);
            LOAD_FP(SetPopupMenuWillBecomeVisible SetPopupMenuWillBecomeVisibleFP “setPopupMenuWillBecomeVisibleFP“);

            LOAD_FP(SetPropertyNameChange SetPropertyNameChangeFP “setPropertyNameChangeFP“);
            LOAD_FP(SetPropertyDescriptionchange SetPropertyDescriptionchangeFP “setPropertyDescriptionchangeFP“);
            LOAD_FP(SetPropertyStateChange SetPropertyStateChangeFP “setPropertyStateChangeFP“);
    

评论

共有 条评论