sharedstubs.java

来自「用于Java 组件和通过Windows COM 对象或Windows DLL 来」· Java 代码 · 共 55 行

JAVA
55
字号
//******************************************************************
// Released under the DevelopMentor OpenSource Software License.
// Please consult the LICENSE file in the project root directory,
// or at http://www.develop.com for details before using this
// software.
//******************************************************************

package com.develop.jawin.marshal;

import com.develop.util.*;
import java.io.*;

public class SharedStubs {
  static {
    com.develop.jawin.Bootstrap.init();
  }

  /**
     Guide to codes:
     
     I int
     G string
     O out arg sizeof(int)
     P array 
     S sized out/retval
     
 */
  public static native int invokeIGGI_I(int arg1, String arg2, String arg3, int arg4, int func, int flags);

  public static native int invokeIIII_I(int arg0, int arg1, int arg2, int arg3, int func, int flags);
  public static native int invokeII_I(int arg0, int arg1, int func, int flags);
  public static native int invokeI_I(int arg0, int func, int flags);
  public static native int invoke_I(int func, int flags);

  public static native int invokeG_I(String arg0, int peer, int flags);
  public static native int invokeGG_I(String arg0, String arg1, int peer, int flags);
	        
  //pointer [in] args, int return 
  public static native int invokeP_I(byte[] arg0, int func, int flags);

  //int args with an [out] int
  public static native int invokeIIIIO(int arg0, int arg1, int arg2, int arg3, int func, int flags);
  public static native int invokeIO(int arg0, int peer, int flags);
  public static native int invokeIGO(int arg0, String arg2, int peer, int flags);

  //mixed args
  public static native byte[] invokeIG_I(int arg0, String arg1, int peer, int flags);
  public static native byte[] invokeI_S(int arg0, int returnSize, int func, int flags);
  public static native byte[] invokeP_S(byte[] arg0, int returnSize, int func, int flags);
  public static native byte[] invokePI_S(byte[] arg0, int arg2, int returnSize, int func, int flags);
    
}


⌨️ 快捷键说明

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