Package com.sun.jna.platform.win32
Klasse Guid.REFIID
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.win32.Guid.REFIID
- Alle implementierten Schnittstellen:
NativeMapped
- Umschließende Schnittstelle:
Guid
REFIID is a pointer to an IID.
This type needs to be seperate from IID, as the REFIID can be passed in from external code, that does not allow writes to memory.
With the normal JNA behaviour a structure, that crosses the native<-%gt;Java border will be autowritten, which causes a fault when written. Observed was this behaviour in COM-Callbacks, which get the REFIID passed into Invoke-method.
So a IID can't be used directly, although the typedef of REFIID (from MSDN):
typedef IID* REFIID;
and the jna behaviour is described as:
"When a function requires a pointer to a struct, a Java Structure should be used."
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Von Klasse geerbte Methoden com.sun.jna.PointerType
fromNative, getPointer, nativeType, setPointer, toNative, toString
-
Konstruktordetails
-
REFIID
public REFIID()Instantiates a new refiid. -
REFIID
Instantiates a new refiid.- Parameter:
memory
- the memory
-
REFIID
-
-
Methodendetails
-
setValue
-
getValue
-
equals
Beschreibung aus Klasse kopiert:PointerType
Instances ofPointerType
with identical pointers compare equal by default.- Setzt außer Kraft:
equals
in KlassePointerType
-
hashCode
public int hashCode()Beschreibung aus Klasse kopiert:PointerType
The hash code for aPointerType
is the same as that for its pointer.- Setzt außer Kraft:
hashCode
in KlassePointerType
-