重複の可能性:
JavaのIntPtr(C#)に相当するものは何ですか?
C#のIntPtr.ZEROに相当するJavaはありますか?ない場合、JNAライブラリインターフェイス呼び出しに渡されたときに同じ動作を実現する方法はありますか?
私はこのスニペットを使用してIntPtr.ZEROを表します:
private static final IntByReference ZERO = new IntByReference(0);
このKernel32JNAインターフェースに渡されたときに同じ動作を実現しますか?:
boolean CreateProcess(String lpApplicationName, String commandLine,
int processAttributes, int threadAttributes,
boolean inheritHandles, int creationFlags,
IntByReference environment, String currentDirectory,
STARTUPINFO startupInfo, PROCESS_INFORMATION processInformation);
そのように:
CreateProcess(target, null, 0, 0, false, 4, ZERO, null, sInfo, pInfo)