typelibwrapper.java

来自「java 调用windows的api」· Java 代码 · 共 50 行

JAVA
50
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?