- java.lang.Object
-
- de.ibapl.jnhw.common.memory.AbstractNativeMemory
-
- de.ibapl.jnhw.common.memory.OpaqueMemory32
-
- de.ibapl.jnhw.common.memory.Struct32
-
- de.ibapl.jnhw.winapi.Winnt.PHANDLE
-
- All Implemented Interfaces:
Native
- Direct Known Subclasses:
WinDef.PHKEY
- Enclosing class:
- Winnt
public static class Winnt.PHANDLE extends Struct32
Wrapper for PHANDLE.A pointer to a HANDLE.
This type is declared in WinNT.h as follows:
typedef HANDLE *PHANDLE;
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceWinnt.PHANDLE.CreateHandler-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
OpaqueMemory32.OpaqueMemory32Producer<T extends OpaqueMemory32,P extends AbstractNativeMemory>
-
Nested classes/interfaces inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
AbstractNativeMemory.NativeMemoryAlignment
-
-
Field Summary
-
Fields inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
sizeInBytes
-
Fields inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
baseAddress, LOG, memoryOwner
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPHANDLE(Winnt.HANDLE handle)protectedPHANDLE(Winnt.PHANDLE.CreateHandler handler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Winnt.HANDLEcreateTarget(long value)Must be overwritten in subclasses.Winnt.HANDLEdereference()StringnativeToString()voidsetFromHANDLE(Winnt.HANDLE target)static intsizeof()-
Methods inherited from class de.ibapl.jnhw.common.memory.Struct32
getBaseDataType, nativeToHexString
-
Methods inherited from class de.ibapl.jnhw.common.memory.OpaqueMemory32
calcNextOffset, clear, copy, copy, equals, getByte, hashCode, memset, nativeToString, offsetof, printMemory, printMemory, setByte, toBytes, toString
-
Methods inherited from class de.ibapl.jnhw.common.memory.AbstractNativeMemory
ENOMEM, isSameAddress
-
-
-
-
Constructor Detail
-
PHANDLE
protected PHANDLE(Winnt.PHANDLE.CreateHandler handler)
-
PHANDLE
protected PHANDLE(Winnt.HANDLE handle)
-
-
Method Detail
-
sizeof
@SizeOf public static final int sizeof()
-
dereference
public Winnt.HANDLE dereference()
-
createTarget
protected Winnt.HANDLE createTarget(long value)
Must be overwritten in subclasses.- Parameters:
value-- Returns:
-
setFromHANDLE
public void setFromHANDLE(Winnt.HANDLE target)
-
nativeToString
public String nativeToString()
- Specified by:
nativeToStringin interfaceNative- Overrides:
nativeToStringin classOpaqueMemory32
-
-