가능한 중복 :
What’s the equivalent to IntPtr (C#) in Java?Java에 상응하는 IntPtr.ZERO?
는 C#의 IntPtr.ZERO의 자바 상당이 있습니까? 없는 경우, JNA 라이브러리 인터페이스 호출에 전달 될 때 동일한 동작을 수행 할 수있는 방법이 있습니까? 이 의 Kernal32 JNA 인터페이스?
boolean CreateProcess(String lpApplicationName, String commandLine,
int processAttributes, int threadAttributes,
boolean inheritHandles, int creationFlags,
IntByReference environment, String currentDirectory,
STARTUPINFO startupInfo, PROCESS_INFORMATION processInformation);
에 전달 될 때
private static final IntByReference ZERO = new IntByReference(0);
내가 같은 동작을 달성 :
나는 IntPtr.ZERO를 대표하는이 조각을 사용하고 있습니다 그대로 : CreateProcess(target, null, 0, 0, false, 4, ZERO, null, sInfo, pInfo)
죄송합니다. IntPtr은 아니며 IntPtr.Zero가 아닌 것 같습니다. –
나는 _IntPtr_와 동등한 것을 찾고 있지 않다. _IntPtr.ZERO_와 동등한 것이 필요하다. – Jire
JNA에서는 'null'이 일반적으로 동등하게 사용됩니다. – msandiford