/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jnr.posix;
/**
*
* @author enebo
*/
public class WindowsProcessInformation extends jnr.ffi.Struct {
final PointerhProcess = new Pointer();
final PointerhThread = new Pointer();
final Unsigned32dwProcessId = new Unsigned32();
final Unsigned32dwThreadId = new Unsigned32();
public WindowsProcessInformation(jnr.ffi.Runtimeruntime) {
super(runtime);
}
public HANDLEgetThread() {
return new HANDLE(hThread.get());
}
public HANDLEgetProcess() {
return new HANDLE(hProcess.get());
}
public int getPid() {
return dwProcessId.intValue();
}
}