⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 typelibwrapper.java

📁 java 调用windows的api
💻 JAVA
字号:
/*
 * TypeLibWrapper.java
 *
 * Created on June 1, 2002, 7:55 AM
 */

package org.jawin.code;

/**
 *
 * @author  cutex1
 */
public class TypeLibWrapper extends Object
{
    
    static
    {
        //System.out.println("Load TypeLibWrapper");
        System.loadLibrary("TypeLibWrapper");
        System.out.println("Loaded TypeLibWrapper");
    }
    /** Creates a new instance of TypeLibWrapper */
    public TypeLibWrapper()
    {
    }
    
    public native int loadTypeLib(String typeLibFilePath);
    public native int clearTypeInfos();
    public native Object[] getTypeLibGUID();
    public native void setVerbose(boolean verbose);
    public native int getTypeInfoCount();
    public native int getTypeInfoType(int typeInfoIndex);
    public native Object[] getTypeInfoGUID(int typeInfoIndex);
    public native String getTypeInfoName(int typeInfoIndex);
    public native int getInterfaceTypeInfoCount(int typeInfoIndex);
    public native int[] getInterfaceType(int typeInfoIndex, String interfaceName);
    public native int getInterfaceMemberID(int typeInfoIndex, String propertyName);
    public native String[] getPropertyNames(int typeInfoIndex);
    public native int[] getPropertyType(int typeInfoIndex, String propertyName, String[] userDefinedTypeName);
    public native int getPropertyMemberID(int typeInfoIndex, String propertyName);
    public native String[] getFunctionNames(int typeInfoIndex);
    public native int[] getFunctionReturnType(int typeInfoIndex, String functionName, int functionNameIndex, String[] userDefinedTypeName);
    public native int getFunctionMemberID(int typeInfoIndex, String functionName, int functionNameIndex);
    public native String[] getFunctionParameterNames(int typeInfoIndex, String functionName, int functionNameIndex);
    public native int[] getFunctionParameterType(int typeInfoIndex, String functionName, int functionNameIndex, String parameterName, int parameterNameIndex, String[] userDefinedTypeName);
    

    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -