Package com.sun.jna.platform.win32
Class Guid.REFIID
- java.lang.Object
- 
- com.sun.jna.PointerType
- 
- com.sun.jna.platform.win32.Guid.REFIID
 
 
- 
- All Implemented Interfaces:
- NativeMapped
 - Enclosing interface:
- Guid
 
 public static class Guid.REFIID extends PointerType 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." 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Instances ofPointerTypewith identical pointers compare equal by default.Guid.IIDgetValue()inthashCode()The hash code for aPointerTypeis the same as that for its pointer.voidsetValue(Guid.IID value)- 
Methods inherited from class com.sun.jna.PointerTypefromNative, getPointer, nativeType, setPointer, toNative, toString
 
- 
 
- 
- 
- 
Method Detail- 
setValuepublic void setValue(Guid.IID value) 
 - 
getValuepublic Guid.IID getValue() 
 - 
equalspublic boolean equals(java.lang.Object o) Description copied from class:PointerTypeInstances ofPointerTypewith identical pointers compare equal by default.- Overrides:
- equalsin class- PointerType
 
 - 
hashCodepublic int hashCode() Description copied from class:PointerTypeThe hash code for aPointerTypeis the same as that for its pointer.- Overrides:
- hashCodein class- PointerType
 
 
- 
 
-